Revision: 3607 http://skim-app.svn.sourceforge.net/skim-app/?rev=3607&view=rev Author: hofman Date: 2008-04-03 10:35:23 -0700 (Thu, 03 Apr 2008)
Log Message: ----------- Use unsigned long for 4-char code. Modified Paths: -------------- trunk/SKPDFAnnotationNote.h trunk/SKPDFAnnotationNote.m Modified: trunk/SKPDFAnnotationNote.h =================================================================== --- trunk/SKPDFAnnotationNote.h 2008-04-03 16:57:57 UTC (rev 3606) +++ trunk/SKPDFAnnotationNote.h 2008-04-03 17:35:23 UTC (rev 3607) @@ -51,8 +51,8 @@ }; -extern int SKScriptingIconTypeFromIconType(int iconType); -extern int SKIconTypeFromScriptingIconType(int iconType); +extern unsigned long SKScriptingIconTypeFromIconType(int iconType); +extern int SKIconTypeFromScriptingIconType(unsigned long iconType); extern NSString *SKPDFAnnotationIconTypeKey; @@ -85,6 +85,7 @@ - (void)setText:(NSAttributedString *)newText; - (void)setRichText:(id)newText; +- (void)setScriptingIconType:(unsigned long)type; @end Modified: trunk/SKPDFAnnotationNote.m =================================================================== --- trunk/SKPDFAnnotationNote.m 2008-04-03 16:57:57 UTC (rev 3606) +++ trunk/SKPDFAnnotationNote.m 2008-04-03 17:35:23 UTC (rev 3607) @@ -45,7 +45,7 @@ #import "NSString_SKExtensions.h" -int SKScriptingIconTypeFromIconType(int iconType) { +unsigned long SKScriptingIconTypeFromIconType(int iconType) { switch (iconType) { case kPDFTextAnnotationIconComment: return SKScriptingTextAnnotationIconComment; case kPDFTextAnnotationIconKey: return SKScriptingTextAnnotationIconKey; @@ -58,7 +58,7 @@ } } -int SKIconTypeFromScriptingIconType(int iconType) { +int SKIconTypeFromScriptingIconType(unsigned long iconType) { switch (iconType) { case SKScriptingTextAnnotationIconComment: return kPDFTextAnnotationIconComment; case SKScriptingTextAnnotationIconKey: return kPDFTextAnnotationIconKey; @@ -273,11 +273,11 @@ return customNoteScriptingKeys; } -- (int)scriptingIconType { +- (unsigned long)scriptingIconType { return SKScriptingIconTypeFromIconType([self iconType]); } -- (void)setScriptingIconType:(int)type { +- (void)setScriptingIconType:(unsigned long)type { [self setIconType:SKIconTypeFromScriptingIconType(type)]; } 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 Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit