Revision: 3694
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3694&view=rev
Author:   hofman
Date:     2008-04-10 07:42:02 -0700 (Thu, 10 Apr 2008)

Log Message:
-----------
Implement valueClassForBinding: for color swatch.

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

Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m       2008-04-10 14:36:22 UTC (rev 3693)
+++ trunk/SKColorSwatch.m       2008-04-10 14:42:02 UTC (rev 3694)
@@ -57,6 +57,13 @@
     [self exposeBinding:SKColorSwatchColorsKey];
 }
 
+- (Class)valueClassForBinding:(NSString *)binding {
+    if ([binding isEqualToString:SKColorSwatchColorsKey])
+        return [NSArray class];
+    else
+        return [super valueClassForBinding:binding];
+}
+
 - (id)initWithFrame:(NSRect)frame {
     self = [super initWithFrame:frame];
     if (self) {


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 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to