Revision: 6535
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6535&view=rev
Author:   hofman
Date:     2010-05-14 17:23:10 +0000 (Fri, 14 May 2010)

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

Modified Paths:
--------------
    trunk/SKMainDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2010-05-13 17:29:44 UTC (rev 6534)
+++ trunk/SKMainDocument.m      2010-05-14 17:23:10 UTC (rev 6535)
@@ -124,21 +124,12 @@
     double openMetaRating;
 }
 
-- (PDFDocument *)pdfDocument;
-- (void)setPdfDocument:(PDFDocument *)newPdfDocument;
+...@property (nonatomic, retain) PDFDocument *pdfDocument;
+...@property (nonatomic, copy) NSArray *noteDicts;
+...@property (nonatomic, copy) NSDictionary *presentationOptions;
+...@property (nonatomic, copy) NSArray *openMetaTags;
+...@property (nonatomic) double openMetaRating;
 
-- (NSArray *)noteDicts;
-- (void)setNoteDicts:(NSArray *)newNoteDicts;
-
-- (NSDictionary *)presentationOptions;
-- (void)setPresentationOptions:(NSDictionary *)newPresentationOptions;
-
-- (NSArray *)openMetaTags;
-- (void)setOpenMetaTags:(NSArray *)newOpenMetaTags;
-
-- (double)openMetaRating;
-- (void)setOpenMetaRating:(double)newOpenMetaRating;
-
 @end
 
 
@@ -2192,6 +2183,8 @@
 
 @implementation SKTemporaryData
 
+...@synthesize pdfDocument, noteDicts, presentationOptions, openMetaTags, 
openMetaRating;
+
 - (id)init {
     if (self = [super init]) {
         pdfDocument = nil;
@@ -2211,57 +2204,5 @@
     [super dealloc];
 }
 
-- (PDFDocument *)pdfDocument {
-    return pdfDocument;
-}
-
-- (void)setPdfDocument:(PDFDocument *)newPdfDocument {
-    if (pdfDocument != newPdfDocument) {
-        [pdfDocument release];
-        pdfDocument = [newPdfDocument retain];
-    }
-}
-
-- (NSArray *)noteDicts {
-    return noteDicts;
-}
-
-- (void)setNoteDicts:(NSArray *)newNoteDicts {
-    if (noteDicts != newNoteDicts) {
-        [noteDicts release];
-        noteDicts = [newNoteDicts copy];
-    }
-}
-
-- (NSDictionary *)presentationOptions {
-    return presentationOptions;
-}
-
-- (void)setPresentationOptions:(NSDictionary *)newPresentationOptions {
-    if (presentationOptions != newPresentationOptions) {
-        [presentationOptions release];
-        presentationOptions = [newPresentationOptions copy];
-    }
-}
-
-- (NSArray *)openMetaTags {
-    return openMetaTags;
-}
-
-- (void)setOpenMetaTags:(NSArray *)newOpenMetaTags {
-    if (openMetaTags != newOpenMetaTags) {
-        [openMetaTags release];
-        openMetaTags = [newOpenMetaTags copy];
-    }
-}
-
-- (double)openMetaRating {
-    return openMetaRating;
-}
-
-- (void)setOpenMetaRating:(double)newOpenMetaRating {
-    openMetaRating = newOpenMetaRating;
-}
-
 @end
 


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

------------------------------------------------------------------------------

_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to