Revision: 3098
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3098&view=rev
Author:   hofman
Date:     2007-10-30 05:57:01 -0700 (Tue, 30 Oct 2007)

Log Message:
-----------
Add global string for hidden font size pref.

Modified Paths:
--------------
    trunk/SKFindTableView.m
    trunk/SKNoteOutlineView.m
    trunk/SKStringConstants.h
    trunk/SKStringConstants.m
    trunk/SKTocOutlineView.m

Modified: trunk/SKFindTableView.m
===================================================================
--- trunk/SKFindTableView.m     2007-10-30 12:54:45 UTC (rev 3097)
+++ trunk/SKFindTableView.m     2007-10-30 12:57:01 UTC (rev 3098)
@@ -48,7 +48,7 @@
 }
 
 - (void)awakeFromNib {
-    NSNumber *fontSize = [[NSUserDefaults standardUserDefaults] 
objectForKey:@"SKTableFontSize"];
+    NSNumber *fontSize = [[NSUserDefaults standardUserDefaults] 
objectForKey:SKTableFontSizeKey];
     if (fontSize)
         [self setFont:[NSFont systemFontOfSize:[fontSize floatValue]]];
 }

Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m   2007-10-30 12:54:45 UTC (rev 3097)
+++ trunk/SKNoteOutlineView.m   2007-10-30 12:57:01 UTC (rev 3098)
@@ -52,7 +52,7 @@
 
 - (void)awakeFromNib {
     [self noteTypeMenu]; // this sets the menu for the header view
-    NSNumber *fontSize = [[NSUserDefaults standardUserDefaults] 
objectForKey:@"SKTableFontSize"];
+    NSNumber *fontSize = [[NSUserDefaults standardUserDefaults] 
objectForKey:SKTableFontSizeKey];
     if (fontSize)
         [self setFont:[NSFont systemFontOfSize:[fontSize floatValue]]];
 }

Modified: trunk/SKStringConstants.h
===================================================================
--- trunk/SKStringConstants.h   2007-10-30 12:54:45 UTC (rev 3097)
+++ trunk/SKStringConstants.h   2007-10-30 12:57:01 UTC (rev 3098)
@@ -110,6 +110,7 @@
 extern NSString *SKAutoRemoveFinishedDownloadsKey;
 extern NSString *SKAutoCloseDownloadsWindowKey;
 extern NSString *SKShouldSetCreatorCodeKey;
+extern NSString *SKTableFontSizeKey;
 
 extern NSString *SKFreeTextString;
 extern NSString *SKTextString;

Modified: trunk/SKStringConstants.m
===================================================================
--- trunk/SKStringConstants.m   2007-10-30 12:54:45 UTC (rev 3097)
+++ trunk/SKStringConstants.m   2007-10-30 12:57:01 UTC (rev 3098)
@@ -111,6 +111,7 @@
 NSString *SKAutoRemoveFinishedDownloadsKey = @"SKAutoRemoveFinishedDownloads";
 NSString *SKAutoCloseDownloadsWindowKey = @"SKAutoCloseDownloadsWindow";
 NSString *SKShouldSetCreatorCodeKey = @"SKShouldSetCreatorCode";
+NSString *SKTableFontSizeKey = @"SKTableFontSize";
 
 NSString *SKFreeTextString = @"FreeText";
 NSString *SKTextString = @"Text";

Modified: trunk/SKTocOutlineView.m
===================================================================
--- trunk/SKTocOutlineView.m    2007-10-30 12:54:45 UTC (rev 3097)
+++ trunk/SKTocOutlineView.m    2007-10-30 12:57:01 UTC (rev 3098)
@@ -50,7 +50,7 @@
 }
 
 - (void)awakeFromNib {
-    NSNumber *fontSize = [[NSUserDefaults standardUserDefaults] 
objectForKey:@"SKTableFontSize"];
+    NSNumber *fontSize = [[NSUserDefaults standardUserDefaults] 
objectForKey:SKTableFontSizeKey];
     if (fontSize)
         [self setFont:[NSFont systemFontOfSize:[fontSize floatValue]]];
 }


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