Revision: 4372
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4372&view=rev
Author:   hofman
Date:     2008-08-11 12:06:56 +0000 (Mon, 11 Aug 2008)

Log Message:
-----------
Implement KVO depdendent keys in Leopard-only class using new KVC methods.

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

Modified: trunk/SKPrintAccessoryController.m
===================================================================
--- trunk/SKPrintAccessoryController.m  2008-08-10 16:59:54 UTC (rev 4371)
+++ trunk/SKPrintAccessoryController.m  2008-08-11 12:06:56 UTC (rev 4372)
@@ -41,13 +41,18 @@
 
 @implementation SKPrintAccessoryController
 
-+ (void)initialize {
-    [self setKeys:[NSArray arrayWithObjects:@"autoRotate", 
@"printScalingMode", nil] 
triggerChangeNotificationsForDependentKey:@"localizedSummaryItems"];
-    [self setKeys:[NSArray arrayWithObjects:@"representedObject", nil] 
triggerChangeNotificationsForDependentKey:@"autoRotate"];
-    [self setKeys:[NSArray arrayWithObjects:@"representedObject", nil] 
triggerChangeNotificationsForDependentKey:@"printScalingMode"];
-    [super initialize];
++ (NSSet *)keyPathsForValuesAffectingLocalizedSummaryItems {
+    return [NSSet setWithObjects:@"autoRotate", @"printScalingMode", nil];
 }
 
++ (NSSet *)keyPathsForValuesAffectingAutoRotate {
+    return [NSSet setWithObjects:@"representedObject", nil];
+}
+
++ (NSSet *)keyPathsForValuesAffectingPrintScalingMode {
+    return [NSSet setWithObjects:@"representedObject", nil];
+}
+
 - (NSString *)nibName {
     return @"PrintAccessoryView";
 }


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to