Revision: 2736
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2736&view=rev
Author:   hofman
Date:     2007-08-27 12:57:17 -0700 (Mon, 27 Aug 2007)

Log Message:
-----------
Make lines for applescript always contained in the application. Simplification, 
and the container is not relevant anyway.

Modified Paths:
--------------
    trunk/SKApplicationController.m
    trunk/SKDocument.m
    trunk/SKLine.h
    trunk/SKLine.m

Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m     2007-08-27 19:36:07 UTC (rev 2735)
+++ trunk/SKApplicationController.m     2007-08-27 19:57:17 UTC (rev 2736)
@@ -533,7 +533,7 @@
 }
 
 - (SKLine *)objectInLinesAtIndex:(unsigned int)index {
-    return [[[SKLine alloc] initWithContainer:nil line:index] autorelease];
+    return [[[SKLine alloc] initWithLine:index] autorelease];
 }
 
 @end

Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m  2007-08-27 19:36:07 UTC (rev 2735)
+++ trunk/SKDocument.m  2007-08-27 19:57:17 UTC (rev 2736)
@@ -1198,7 +1198,7 @@
 }
 
 - (SKLine *)objectInLinesAtIndex:(unsigned int)index {
-    return [[[SKLine alloc] initWithContainer:self line:index] autorelease];
+    return [[[SKLine alloc] initWithLine:index] autorelease];
 }
 
 - (PDFPage *)currentPage {

Modified: trunk/SKLine.h
===================================================================
--- trunk/SKLine.h      2007-08-27 19:36:07 UTC (rev 2735)
+++ trunk/SKLine.h      2007-08-27 19:57:17 UTC (rev 2736)
@@ -40,9 +40,8 @@
 
 
 @interface SKLine : NSObject {
-    id container;
     int line;
 }
-- (id)initWithContainer:(id)aContainer line:(int)aLine;
+- (id)initWithLine:(int)aLine;
 - (int)line;
 @end

Modified: trunk/SKLine.m
===================================================================
--- trunk/SKLine.m      2007-08-27 19:36:07 UTC (rev 2735)
+++ trunk/SKLine.m      2007-08-27 19:57:17 UTC (rev 2736)
@@ -41,18 +41,16 @@
 
 @implementation SKLine
 
-- (id)initWithContainer:(id)aContainer line:(int)aLine {
+- (id)initWithLine:(int)aLine {
     if (self = [super init]) {
-        container = aContainer;
         line = aLine;
     }
     return self;
 }
 
 - (NSScriptObjectSpecifier *)objectSpecifier {
-    NSScriptObjectSpecifier *containerRef = [container objectSpecifier];
-    NSScriptClassDescription *containerClassDescription = container ? 
[containerRef keyClassDescription] : (NSScriptClassDescription 
*)[NSClassDescription classDescriptionForClass:[NSApp class]];
-    return [[[NSIndexSpecifier allocWithZone:[self zone]] 
initWithContainerClassDescription:containerClassDescription 
containerSpecifier:containerRef key:@"lines" index:line] autorelease];
+    NSScriptClassDescription *containerClassDescription = 
(NSScriptClassDescription *)[NSClassDescription classDescriptionForClass:[NSApp 
class]];
+    return [[[NSIndexSpecifier allocWithZone:[self zone]] 
initWithContainerClassDescription:containerClassDescription 
containerSpecifier:nil key:@"lines" index:line] autorelease];
 }
 
 - (int)line {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to