Revision: 2895
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2895&view=rev
Author:   hofman
Date:     2007-09-11 09:32:42 -0700 (Tue, 11 Sep 2007)

Log Message:
-----------
Implement NSCopying in custom cell classes with custom ivars.

Modified Paths:
--------------
    trunk/SKNoteOutlineView.m
    trunk/SKProgressCell.m
    trunk/SKThumbnailTableView.m

Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m   2007-09-11 13:19:36 UTC (rev 2894)
+++ trunk/SKNoteOutlineView.m   2007-09-11 16:32:42 UTC (rev 2895)
@@ -308,6 +308,13 @@
 
 @implementation SKAnnotationTypeImageCell
 
+- (id)copyWithZone:(NSZone *)aZone {
+    SKAnnotationTypeImageCell *copy = [super copyWithZone:aZone];
+    copy->type = [type retain];
+    copy->active = active;
+    return copy;
+}
+
 - (void)dealloc {
     [type release];
     [super dealloc];

Modified: trunk/SKProgressCell.m
===================================================================
--- trunk/SKProgressCell.m      2007-09-11 13:19:36 UTC (rev 2894)
+++ trunk/SKProgressCell.m      2007-09-11 16:32:42 UTC (rev 2895)
@@ -50,8 +50,15 @@
     [super dealloc];
 }
 
+- (id)copyWithZone:(NSZone *)aZone {
+    SKProgressCell *copy = [super copyWithZone:aZone];
+    copy->progressIndicator = [progressIndicator retain];
+    copy->status = status;
+    return copy;
+}
+
 - (NSProgressIndicator *)progressIndicator {
-    return [[progressIndicator retain] autorelease];
+    return progressIndicator;
 }
 
 - (void)setProgressIndicator:(NSProgressIndicator *)newProgressIndicator {

Modified: trunk/SKThumbnailTableView.m
===================================================================
--- trunk/SKThumbnailTableView.m        2007-09-11 13:19:36 UTC (rev 2894)
+++ trunk/SKThumbnailTableView.m        2007-09-11 16:32:42 UTC (rev 2895)
@@ -200,6 +200,12 @@
     }
 }
 
+- (id)copyWithZone:(NSZone *)aZone {
+    SKSnapshotPageCell *copy = [super copyWithZone:aZone];
+    copy->hasWindow = hasWindow;
+    return copy;
+}
+
 - (void)setObjectValue:(id)anObject {
     [super setObjectValue:[anObject valueForKey:@"label"]];
     hasWindow = [[anObject valueForKey:@"hasWindow"] boolValue];


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 2005.
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