Revision: 3902
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3902&view=rev
Author:   hofman
Date:     2008-05-19 10:43:16 -0700 (Mon, 19 May 2008)

Log Message:
-----------
Move NSUserDefaults category to separate files

Modified Paths:
--------------
    trunk/NSUserDefaultsController_SKExtensions.h
    trunk/NSUserDefaultsController_SKExtensions.m
    trunk/SKApplicationController.m
    trunk/SKMainWindowController.m
    trunk/SKPDFAnnotationCircle.m
    trunk/SKPDFAnnotationFreeText.m
    trunk/SKPDFAnnotationLine.m
    trunk/SKPDFAnnotationMarkup.m
    trunk/SKPDFAnnotationNote.m
    trunk/SKPDFAnnotationSquare.m
    trunk/SKPDFView.m

Added Paths:
-----------
    trunk/NSUserDefaults_SKExtensions.h
    trunk/NSUserDefaults_SKExtensions.m

Modified: trunk/NSUserDefaultsController_SKExtensions.h
===================================================================
--- trunk/NSUserDefaultsController_SKExtensions.h       2008-05-19 17:33:54 UTC 
(rev 3901)
+++ trunk/NSUserDefaultsController_SKExtensions.h       2008-05-19 17:43:16 UTC 
(rev 3902)
@@ -49,11 +49,3 @@
 - (void)revertToInitialValuesForKeys:(NSArray *)keys;
 
 @end
-
-
[EMAIL PROTECTED] NSUserDefaults (SKExtensions)
-
-- (NSColor *)colorForKey:(NSString *)key;
-- (void)setColor:(NSColor *)color forKey:(NSString *)key;
-
[EMAIL PROTECTED]

Modified: trunk/NSUserDefaultsController_SKExtensions.m
===================================================================
--- trunk/NSUserDefaultsController_SKExtensions.m       2008-05-19 17:33:54 UTC 
(rev 3901)
+++ trunk/NSUserDefaultsController_SKExtensions.m       2008-05-19 17:43:16 UTC 
(rev 3902)
@@ -75,18 +75,3 @@
 }
 
 @end
-
-
[EMAIL PROTECTED] NSUserDefaults (SKExtensions)
-
-- (NSColor *)colorForKey:(NSString *)key {
-    NSData *data = [self dataForKey:key];
-    return data ? [NSUnarchiver unarchiveObjectWithData:data] : nil;
-}
-
-- (void)setColor:(NSColor *)color forKey:(NSString *)key {
-    NSData *data = color ? [NSArchiver archivedDataWithRootObject:color] : nil;
-    return [self setObject:data forKey:key];
-}
-
[EMAIL PROTECTED]

Added: trunk/NSUserDefaults_SKExtensions.h
===================================================================
--- trunk/NSUserDefaults_SKExtensions.h                         (rev 0)
+++ trunk/NSUserDefaults_SKExtensions.h 2008-05-19 17:43:16 UTC (rev 3902)
@@ -0,0 +1,47 @@
+//
+//  NSUserDefaults_SKExtensions.h
+//  Skim
+//
+//  Created by Christiaan Hofman on 5/19/08.
+/*
+ This software is Copyright (c) 2007-2008
+ Christiaan Hofman. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in
+    the documentation and/or other materials provided with the
+    distribution.
+
+ - Neither the name of Christiaan Hofman nor the names of any
+    contributors may be used to endorse or promote products derived
+    from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Cocoa/Cocoa.h>
+
+
[EMAIL PROTECTED] NSUserDefaults (SKExtensions)
+
+- (NSColor *)colorForKey:(NSString *)key;
+- (void)setColor:(NSColor *)color forKey:(NSString *)key;
+
[EMAIL PROTECTED]

Added: trunk/NSUserDefaults_SKExtensions.m
===================================================================
--- trunk/NSUserDefaults_SKExtensions.m                         (rev 0)
+++ trunk/NSUserDefaults_SKExtensions.m 2008-05-19 17:43:16 UTC (rev 3902)
@@ -0,0 +1,54 @@
+//
+//  NSUserDefaults_SKExtensions.m
+//  Skim
+//
+//  Created by Christiaan Hofman on 5/19/08.
+/*
+ This software is Copyright (c) 2007-2008
+ Christiaan Hofman. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in
+    the documentation and/or other materials provided with the
+    distribution.
+
+ - Neither the name of Christiaan Hofman nor the names of any
+    contributors may be used to endorse or promote products derived
+    from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "NSUserDefaults_SKExtensions.h"
+
+
[EMAIL PROTECTED] NSUserDefaults (SKExtensions)
+
+- (NSColor *)colorForKey:(NSString *)key {
+    NSData *data = [self dataForKey:key];
+    return data ? [NSUnarchiver unarchiveObjectWithData:data] : nil;
+}
+
+- (void)setColor:(NSColor *)color forKey:(NSString *)key {
+    NSData *data = color ? [NSArchiver archivedDataWithRootObject:color] : nil;
+    return [self setObject:data forKey:key];
+}
+
[EMAIL PROTECTED]

Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m     2008-05-19 17:33:54 UTC (rev 3901)
+++ trunk/SKApplicationController.m     2008-05-19 17:43:16 UTC (rev 3902)
@@ -48,7 +48,7 @@
 #import "SKBookmark.h"
 #import "BDAlias.h"
 #import "SKVersionNumber.h"
-#import "NSUserDefaultsController_SKExtensions.h"
+#import "NSUserDefaults_SKExtensions.h"
 #import <Quartz/Quartz.h>
 #import <Sparkle/Sparkle.h>
 #import "RemoteControl.h"

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2008-05-19 17:33:54 UTC (rev 3901)
+++ trunk/SKMainWindowController.m      2008-05-19 17:43:16 UTC (rev 3902)
@@ -67,6 +67,7 @@
 #import "NSScrollView_SKExtensions.h"
 #import "NSBezierPath_BDSKExtensions.h"
 #import "NSUserDefaultsController_SKExtensions.h"
+#import "NSUserDefaults_SKExtensions.h"
 #import "SKTocOutlineView.h"
 #import "SKNoteOutlineView.h"
 #import "SKThumbnailTableView.h"

Modified: trunk/SKPDFAnnotationCircle.m
===================================================================
--- trunk/SKPDFAnnotationCircle.m       2008-05-19 17:33:54 UTC (rev 3901)
+++ trunk/SKPDFAnnotationCircle.m       2008-05-19 17:43:16 UTC (rev 3902)
@@ -41,7 +41,7 @@
 #import "PDFBorder_SKExtensions.h"
 #import "SKStringConstants.h"
 #import "SKFDFParser.h"
-#import "NSUserDefaultsController_SKExtensions.h"
+#import "NSUserDefaults_SKExtensions.h"
 
 NSString *SKPDFAnnotationInteriorColorKey = @"interiorColor";
 

Modified: trunk/SKPDFAnnotationFreeText.m
===================================================================
--- trunk/SKPDFAnnotationFreeText.m     2008-05-19 17:33:54 UTC (rev 3901)
+++ trunk/SKPDFAnnotationFreeText.m     2008-05-19 17:43:16 UTC (rev 3902)
@@ -41,7 +41,7 @@
 #import "PDFBorder_SKExtensions.h"
 #import "SKStringConstants.h"
 #import "SKFDFParser.h"
-#import "NSUserDefaultsController_SKExtensions.h"
+#import "NSUserDefaults_SKExtensions.h"
 
 NSString *SKPDFAnnotationFontKey = @"font";
 NSString *SKPDFAnnotationFontColorKey = @"fontColor";

Modified: trunk/SKPDFAnnotationLine.m
===================================================================
--- trunk/SKPDFAnnotationLine.m 2008-05-19 17:33:54 UTC (rev 3901)
+++ trunk/SKPDFAnnotationLine.m 2008-05-19 17:43:16 UTC (rev 3902)
@@ -41,7 +41,7 @@
 #import "PDFBorder_SKExtensions.h"
 #import "SKStringConstants.h"
 #import "SKFDFParser.h"
-#import "NSUserDefaultsController_SKExtensions.h"
+#import "NSUserDefaults_SKExtensions.h"
 #import "NSGeometry_SKExtensions.h"
 
 

Modified: trunk/SKPDFAnnotationMarkup.m
===================================================================
--- trunk/SKPDFAnnotationMarkup.m       2008-05-19 17:33:54 UTC (rev 3901)
+++ trunk/SKPDFAnnotationMarkup.m       2008-05-19 17:43:16 UTC (rev 3902)
@@ -42,7 +42,7 @@
 #import "SKStringConstants.h"
 #import "SKFDFParser.h"
 #import "PDFSelection_SKExtensions.h"
-#import "NSUserDefaultsController_SKExtensions.h"
+#import "NSUserDefaults_SKExtensions.h"
 #import "NSGeometry_SKExtensions.h"
 #import "SKCFCallbacks.h"
 

Modified: trunk/SKPDFAnnotationNote.m
===================================================================
--- trunk/SKPDFAnnotationNote.m 2008-05-19 17:33:54 UTC (rev 3901)
+++ trunk/SKPDFAnnotationNote.m 2008-05-19 17:43:16 UTC (rev 3902)
@@ -41,7 +41,7 @@
 #import "PDFBorder_SKExtensions.h"
 #import "SKStringConstants.h"
 #import "SKFDFParser.h"
-#import "NSUserDefaultsController_SKExtensions.h"
+#import "NSUserDefaults_SKExtensions.h"
 #import "NSGeometry_SKExtensions.h"
 #import "NSString_SKExtensions.h"
 

Modified: trunk/SKPDFAnnotationSquare.m
===================================================================
--- trunk/SKPDFAnnotationSquare.m       2008-05-19 17:33:54 UTC (rev 3901)
+++ trunk/SKPDFAnnotationSquare.m       2008-05-19 17:43:16 UTC (rev 3902)
@@ -42,7 +42,7 @@
 #import "PDFBorder_SKExtensions.h"
 #import "SKStringConstants.h"
 #import "SKFDFParser.h"
-#import "NSUserDefaultsController_SKExtensions.h"
+#import "NSUserDefaults_SKExtensions.h"
 
 
 @implementation SKPDFAnnotationSquare

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2008-05-19 17:33:54 UTC (rev 3901)
+++ trunk/SKPDFView.m   2008-05-19 17:43:16 UTC (rev 3902)
@@ -54,6 +54,7 @@
 #import "SKApplication.h"
 #import "SKStringConstants.h"
 #import "NSUserDefaultsController_SKExtensions.h"
+#import "NSUserDefaults_SKExtensions.h"
 #import "SKReadingBar.h"
 #import "SKPDFDocument.h"
 #import "SKPDFSynchronizer.h"


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: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to