Revision: 3958
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3958&view=rev
Author:   hofman
Date:     2008-06-04 03:51:57 -0700 (Wed, 04 Jun 2008)

Log Message:
-----------
Move global string constant declaration. Return new anchored note when 
attempting to create note of type Text.

Modified Paths:
--------------
    trunk/PDFAnnotationText_SKExtensions.h
    trunk/PDFAnnotationText_SKExtensions.m
    trunk/SKPDFAnnotationNote.h

Modified: trunk/PDFAnnotationText_SKExtensions.h
===================================================================
--- trunk/PDFAnnotationText_SKExtensions.h      2008-06-04 10:16:47 UTC (rev 
3957)
+++ trunk/PDFAnnotationText_SKExtensions.h      2008-06-04 10:51:57 UTC (rev 
3958)
@@ -40,6 +40,9 @@
 
 extern NSString *SKPDFAnnotationIconTypeKey;
 
+extern NSString *SKPDFAnnotationScriptingIconTypeKey;
+
+
 @interface PDFAnnotationText (SKExtensions)
 - (void)setScriptingIconType:(unsigned long)type;
 @end

Modified: trunk/PDFAnnotationText_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationText_SKExtensions.m      2008-06-04 10:16:47 UTC (rev 
3957)
+++ trunk/PDFAnnotationText_SKExtensions.m      2008-06-04 10:51:57 UTC (rev 
3958)
@@ -75,6 +75,17 @@
 
 @implementation PDFAnnotationText (SKExtensions)
 
+- (id)initNoteWithBounds:(NSRect)bounds {
+    if ([self isMemberOfClass:[PDFAnnotationText class]]) {
+        NSZone *zone = [self zone];
+        [[self initWithBounds:NSZeroRect] release];
+        self = [[SKPDFAnnotationNote allocWithZone:zone] 
initNoteWithBounds:bounds];
+    } else {
+        self = [super initNoteWithBounds:bounds];
+    }
+    return self;
+}
+
 - (id)initNoteWithProperties:(NSDictionary *)dict{
     if (self = [super initNoteWithProperties:dict]) {
         NSNumber *iconType = [dict objectForKey:SKPDFAnnotationIconTypeKey];

Modified: trunk/SKPDFAnnotationNote.h
===================================================================
--- trunk/SKPDFAnnotationNote.h 2008-06-04 10:16:47 UTC (rev 3957)
+++ trunk/SKPDFAnnotationNote.h 2008-06-04 10:51:57 UTC (rev 3958)
@@ -58,7 +58,6 @@
 extern NSString *SKPDFAnnotationTextKey;
 extern NSString *SKPDFAnnotationImageKey;
 
-extern NSString *SKPDFAnnotationScriptingIconTypeKey;
 extern NSString *SKPDFAnnotationRichTextKey;
 
 extern NSSize SKPDFAnnotationNoteSize;


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://sourceforge.net/services/buy/index.php
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to