Revision: 6446
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6446&view=rev
Author:   hofman
Date:     2010-04-08 22:51:50 +0000 (Thu, 08 Apr 2010)

Log Message:
-----------
encode boolean flag

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

Modified: trunk/SKGradientView.m
===================================================================
--- trunk/SKGradientView.m      2010-04-08 21:26:57 UTC (rev 6445)
+++ trunk/SKGradientView.m      2010-04-08 22:51:50 UTC (rev 6446)
@@ -48,6 +48,7 @@
 - (id)initWithFrame:(NSRect)frame {
     if (self = [super initWithFrame:frame]) {
           edges = SKNoEdgeMask; // we start with no edge, so we can use this 
in IB without getting weird offsets
+       autoEdges = NO;
     }
     return self;
 }
@@ -55,6 +56,7 @@
 - (id)initWithCoder:(NSCoder *)decoder {
        if (self = [super initWithCoder:decoder]) {
                edges = [decoder decodeIntegerForKey:@"edges"];
+               autoEdges = [decoder decodeBoolForKey:@"autoEdges"];
        }
        return self;
 }
@@ -62,6 +64,7 @@
 - (void)encodeWithCoder:(NSCoder *)coder {
   [super encodeWithCoder:coder];
   [coder encodeInteger:edges forKey:@"edges"];
+  [coder encodeBool:autoEdges forKey:@"autoEdges"];
   // NSView should handle encoding of contentView as it is a subview
 }
 


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