Revision: 6420
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6420&view=rev
Author:   hofman
Date:     2010-04-05 17:32:39 +0000 (Mon, 05 Apr 2010)

Log Message:
-----------
use declared properties

Modified Paths:
--------------
    trunk/SKLine.h
    trunk/SKLine.m
    trunk/SKNoteText.h
    trunk/SKNoteText.m

Modified: trunk/SKLine.h
===================================================================
--- trunk/SKLine.h      2010-04-05 12:23:03 UTC (rev 6419)
+++ trunk/SKLine.h      2010-04-05 17:32:39 UTC (rev 6420)
@@ -43,8 +43,7 @@
     NSInteger index;
 }
 - (id)initWithIndex:(NSInteger)anIndex;
-- (NSInteger)index;
-- (NSInteger)scriptingIndex;
+...@property (nonatomic, readonly) NSInteger index, scriptingIndex;
 @end
 
 

Modified: trunk/SKLine.m
===================================================================
--- trunk/SKLine.m      2010-04-05 12:23:03 UTC (rev 6419)
+++ trunk/SKLine.m      2010-04-05 17:32:39 UTC (rev 6420)
@@ -42,6 +42,9 @@
 
 @implementation SKLine
 
+...@synthesize index;
+...@dynamic scriptingIndex;
+
 - (id)initWithIndex:(NSInteger)anIndex {
     if (self = [super init]) {
         index = anIndex;
@@ -54,10 +57,6 @@
     return [[[NSIndexSpecifier allocWithZone:[self zone]] 
initWithContainerClassDescription:containerClassDescription 
containerSpecifier:nil key:@"lines" index:index] autorelease];
 }
 
-- (NSInteger)index {
-    return index;
-}
-
 - (NSInteger)scriptingIndex {
     return index + 1;
 }

Modified: trunk/SKNoteText.h
===================================================================
--- trunk/SKNoteText.h  2010-04-05 12:23:03 UTC (rev 6419)
+++ trunk/SKNoteText.h  2010-04-05 17:32:39 UTC (rev 6420)
@@ -46,14 +46,14 @@
 
 - (id)initWithNote:(PDFAnnotation *)aNote;
 
-- (PDFAnnotation *)note;
+...@property (nonatomic, readonly) PDFAnnotation *note;
 
-- (NSArray *)texts;
+...@property (nonatomic, readonly) NSArray *texts;
 
-- (NSString *)type;
-- (PDFPage *)page;
-- (NSUInteger)pageIndex;
-- (NSString *)string;
-- (NSAttributedString *)text;
+...@property (nonatomic, readonly) NSString *type;
+...@property (nonatomic, readonly) PDFPage *page;
+...@property (nonatomic, readonly) NSUInteger pageIndex;
+...@property (nonatomic, readonly) NSString *string;
+...@property (nonatomic, readonly) NSAttributedString *text;
 
 @end

Modified: trunk/SKNoteText.m
===================================================================
--- trunk/SKNoteText.m  2010-04-05 12:23:03 UTC (rev 6419)
+++ trunk/SKNoteText.m  2010-04-05 17:32:39 UTC (rev 6420)
@@ -42,6 +42,9 @@
 
 @implementation SKNoteText
 
+...@synthesize note;
+...@dynamic texts, type, page, pageIndex, string, text;
+
 - (id)initWithNote:(id)aNote {
     if (self = [super init]) {
         note = aNote;
@@ -54,10 +57,6 @@
     [super dealloc];
 }
 
-- (PDFAnnotation *)note {
-    return note;
-}
-
 - (NSArray *)texts { return nil; }
 
 - (NSString *)type { return nil; }


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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to