Revision: 7583
http://skim-app.svn.sourceforge.net/skim-app/?rev=7583&view=rev
Author: hofman
Date: 2011-12-16 21:46:41 +0000 (Fri, 16 Dec 2011)
Log Message:
-----------
No need to encode embedded image cell
Modified Paths:
--------------
trunk/SKTextWithIconCell.m
Modified: trunk/SKTextWithIconCell.m
===================================================================
--- trunk/SKTextWithIconCell.m 2011-12-16 21:41:15 UTC (rev 7582)
+++ trunk/SKTextWithIconCell.m 2011-12-16 21:46:41 UTC (rev 7583)
@@ -59,10 +59,8 @@
}
- (void)commonInit {
- if (imageCell == nil) {
- imageCell = [[NSImageCell alloc] init];
- [imageCell setImageScaling:NSImageScaleProportionallyUpOrDown];
- }
+ imageCell = [[NSImageCell alloc] init];
+ [imageCell setImageScaling:NSImageScaleProportionallyUpOrDown];
if ([self formatter] == nil)
[self setFormatter:textWithIconCellFormatter];
}
@@ -78,17 +76,11 @@
- (id)initWithCoder:(NSCoder *)decoder {
self = [super initWithCoder:decoder];
if (self) {
- imageCell = [[decoder decodeObjectForKey:@"imageCell"] retain];
[self commonInit];
}
return self;
}
-- (void)encodeWithCoder:(NSCoder *)encoder {
- [super encodeWithCoder:encoder];
- [encoder encodeObject:imageCell forKey:@"imageCell"];
-}
-
- (id)copyWithZone:(NSZone *)zone {
SKTextWithIconCell *copy = [super copyWithZone:zone];
copy->imageCell = [imageCell copyWithZone:zone];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit