Revision: 6407
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6407&view=rev
Author:   hofman
Date:     2010-04-01 14:57:13 +0000 (Thu, 01 Apr 2010)

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

Modified Paths:
--------------
    trunk/SKPDFSynchronizer.h
    trunk/SKPDFSynchronizer.m
    trunk/SKPDFSynchronizerServer.h
    trunk/SKPDFSynchronizerServer.m

Modified: trunk/SKPDFSynchronizer.h
===================================================================
--- trunk/SKPDFSynchronizer.h   2010-04-01 14:43:32 UTC (rev 6406)
+++ trunk/SKPDFSynchronizer.h   2010-04-01 14:57:13 UTC (rev 6407)
@@ -62,12 +62,9 @@
     NSConnection *connection;
 }
 
-- (id <SKPDFSynchronizerDelegate>)delegate;
-- (void)setDelegate:(id <SKPDFSynchronizerDelegate>)newDelegate;
+...@property (assign) id <SKPDFSynchronizerDelegate> delegate;
+...@property (copy) NSString *fileName;
 
-- (NSString *)fileName;
-- (void)setFileName:(NSString *)newFileName;
-
 - (void)findFileAndLineForLocation:(NSPoint)point inRect:(NSRect)rect 
pageBounds:(NSRect)bounds atPageIndex:(NSUInteger)pageIndex;
 - (void)findPageAndLocationForLine:(NSInteger)line inFile:(NSString *)file 
options:(NSInteger)options;
 

Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m   2010-04-01 14:43:32 UTC (rev 6406)
+++ trunk/SKPDFSynchronizer.m   2010-04-01 14:57:13 UTC (rev 6407)
@@ -42,6 +42,9 @@
 
 @implementation SKPDFSynchronizer
 
+...@synthesize delegate;
+...@dynamic fileName;
+
 - (id)init {
     if (self = [super init]) {
         NSPort *port1 = [NSPort port];
@@ -94,14 +97,6 @@
 
 #pragma mark | Accessors
 
-- (id <SKPDFSynchronizerDelegate>)delegate {
-    return delegate;
-}
-
-- (void)setDelegate:(id <SKPDFSynchronizerDelegate>)newDelegate {
-    delegate = newDelegate;
-}
-
 - (NSString *)fileName {
     return [server fileName];
 }

Modified: trunk/SKPDFSynchronizerServer.h
===================================================================
--- trunk/SKPDFSynchronizerServer.h     2010-04-01 14:43:32 UTC (rev 6406)
+++ trunk/SKPDFSynchronizerServer.h     2010-04-01 14:57:13 UTC (rev 6407)
@@ -74,14 +74,11 @@
     struct SKServerFlags *serverFlags;
 }
 
+// these properties are thread safe
+...@property BOOL shouldKeepRunning;
+...@property (copy) NSString *fileName;
+
 // this sets up the background thread and connects back to the client, blocks 
until it's fully set up
 - (void)startDOServerForPorts:(NSArray *)ports;
 
-// these 4 accessors are thread safe
-- (BOOL)shouldKeepRunning;
-- (void)setShouldKeepRunning:(BOOL)flag;
-
-- (NSString *)fileName;
-- (void)setFileName:(NSString *)newFileName;
-
 @end

Modified: trunk/SKPDFSynchronizerServer.m
===================================================================
--- trunk/SKPDFSynchronizerServer.m     2010-04-01 14:43:32 UTC (rev 6406)
+++ trunk/SKPDFSynchronizerServer.m     2010-04-01 14:57:13 UTC (rev 6407)
@@ -64,6 +64,8 @@
 
 @implementation SKPDFSynchronizerServer
 
+...@dynamic shouldKeepRunning, fileName;
+
 + (void)initialize {
     SKINITIALIZE;
     SKPDFSynchronizerTexExtensions = [[NSArray alloc] initWithObjects:@"tex", 
@"ltx", @"latex", @"ctx", @"lyx", nil];


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

------------------------------------------------------------------------------
Download Intel&#174; 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