Revision: 6409
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6409&view=rev
Author:   hofman
Date:     2010-04-03 12:17:51 +0000 (Sat, 03 Apr 2010)

Log Message:
-----------
use declared property

Modified Paths:
--------------
    trunk/SKSyncPreferences.h
    trunk/SKSyncPreferences.m

Modified: trunk/SKSyncPreferences.h
===================================================================
--- trunk/SKSyncPreferences.h   2010-04-02 17:06:14 UTC (rev 6408)
+++ trunk/SKSyncPreferences.h   2010-04-03 12:17:51 UTC (rev 6409)
@@ -47,14 +47,13 @@
 @interface SKSyncPreferences : SKPreferencePane {
     IBOutlet NSArray *texEditorLabels;
     IBOutlet NSArray *texEditorControls;
-    BOOL isCustomTeXEditor;
+    BOOL customTeXEditor;
 }
 
+...@property (getter=isCustomTeXEditor) BOOL customTeXEditor;
+
 + (SKTeXEditor)TeXEditorForPreset:(NSString *)name;
 
-- (BOOL)isCustomTeXEditor;
-- (void)setCustomTeXEditor:(BOOL)flag;
-
 - (IBAction)changeTeXEditorPreset:(id)sender;
 
 @end

Modified: trunk/SKSyncPreferences.m
===================================================================
--- trunk/SKSyncPreferences.m   2010-04-02 17:06:14 UTC (rev 6408)
+++ trunk/SKSyncPreferences.m   2010-04-03 12:17:51 UTC (rev 6409)
@@ -53,6 +53,8 @@
 
 @implementation SKSyncPreferences
 
+...@synthesize customTeXEditor;
+
 - (NSString *)nibName {
     return @"SyncPreferences";
 }
@@ -76,7 +78,7 @@
     
     [self setCustomTeXEditor:idx == -1];
     
-    if (isCustomTeXEditor)
+    if (idx == -1)
         [texEditorPopUpButton selectItem:[texEditorPopUpButton lastItem]];
     else
         [texEditorPopUpButton selectItemAtIndex:idx];
@@ -98,14 +100,6 @@
     return (SKTeXEditor){nil, nil, nil};
 }
 
-- (BOOL)isCustomTeXEditor {
-    return isCustomTeXEditor;
-}
-
-- (void)setCustomTeXEditor:(BOOL)flag {
-    isCustomTeXEditor = flag;
-}
-
 #pragma mark Actions
 
 - (IBAction)changeTeXEditorPreset:(id)sender {


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