Revision: 3608
http://skim-app.svn.sourceforge.net/skim-app/?rev=3608&view=rev
Author: hofman
Date: 2008-04-03 10:50:24 -0700 (Thu, 03 Apr 2008)
Log Message:
-----------
Fix key for icon type.
Modified Paths:
--------------
trunk/SKPDFAnnotationNote.m
Modified: trunk/SKPDFAnnotationNote.m
===================================================================
--- trunk/SKPDFAnnotationNote.m 2008-04-03 17:35:23 UTC (rev 3607)
+++ trunk/SKPDFAnnotationNote.m 2008-04-03 17:50:24 UTC (rev 3608)
@@ -83,7 +83,7 @@
@implementation SKPDFAnnotationNote
-- (id)initWithBounds:(NSRect)bounds {
+- (id)initWithBounds:(NSRect)bounds {log_method();
if (self = [super initWithBounds:bounds]) {
[self setShouldPrint:YES];
[self setColor:[[NSUserDefaults standardUserDefaults]
colorForKey:SKAnchoredNoteColorKey]];
@@ -114,7 +114,7 @@
Class imageClass = [NSImage class];
NSAttributedString *aText = [dict objectForKey:SKPDFAnnotationTextKey];
NSImage *anImage = [dict objectForKey:SKPDFAnnotationImageKey];
- NSNumber *iconType = [dict objectForKey:SKPDFAnnotationTypeKey];
+ NSNumber *iconType = [dict objectForKey:SKPDFAnnotationIconTypeKey];
if ([anImage isKindOfClass:imageClass])
image = [anImage retain];
if ([aText isKindOfClass:attrStringClass])
@@ -122,7 +122,7 @@
else if ([aText isKindOfClass:stringClass])
[textStorage replaceCharactersInRange:NSMakeRange(0, [textStorage
length]) withString:(NSString *)aText];
if ([iconType respondsToSelector:@selector(intValue)])
- [super setIconType:[iconType intValue]];
+ [self setIconType:[iconType intValue]];
[self updateContents];
}
return self;
@@ -138,7 +138,7 @@
- (NSDictionary *)properties{
NSMutableDictionary *dict = [[[super properties] mutableCopy] autorelease];
- [dict setValue:[NSNumber numberWithInt:[self iconType]]
forKey:SKPDFAnnotationTypeKey];
+ [dict setValue:[NSNumber numberWithInt:[self iconType]]
forKey:SKPDFAnnotationIconTypeKey];
[dict setValue:[self text] forKey:SKPDFAnnotationTextKey];
[dict setValue:[self image] forKey:SKPDFAnnotationImageKey];
return dict;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit