Revision: 4221
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4221&view=rev
Author:   hofman
Date:     2008-07-15 06:13:08 -0700 (Tue, 15 Jul 2008)

Log Message:
-----------
Reduce dependencies of source files in framework. PDF classes and categories 
could now be safely left out.

Modified Paths:
--------------
    trunk/SkimNotes/NSFileManager_SKNExtensions.m

Modified: trunk/SkimNotes/NSFileManager_SKNExtensions.m
===================================================================
--- trunk/SkimNotes/NSFileManager_SKNExtensions.m       2008-07-15 12:41:04 UTC 
(rev 4220)
+++ trunk/SkimNotes/NSFileManager_SKNExtensions.m       2008-07-15 13:13:08 UTC 
(rev 4221)
@@ -38,13 +38,16 @@
 
 #import <SkimNotes/NSFileManager_SKNExtensions.h>
 #import <SkimNotes/SKNExtendedAttributeManager.h>
-#import <SkimNotes/PDFAnnotation_SKNExtensions.h>
-#import <SkimNotes/SKNPDFAnnotationNote.h>
 
 #define SKIM_NOTES_KEY @"net_sourceforge_skim-app_notes"
 #define SKIM_RTF_NOTES_KEY @"net_sourceforge_skim-app_rtf_notes"
 #define SKIM_TEXT_NOTES_KEY @"net_sourceforge_skim-app_text_notes"
 
+#define NOTE_PAGE_INDEX_KEY @"pageIndex"
+#define NOTE_TYPE_KEY @"type"
+#define NOTE_CONTENTS_KEY @"contents"
+#define NOTE_TEXT_KEY @"text"
+
 @implementation NSFileManager (SKNExtensions)
 
 static NSString *SKNTextNotes(NSArray *noteDicts) {
@@ -53,10 +56,10 @@
     NSDictionary *dict;
     
     while (dict = [dictEnum nextObject]) {
-        NSString *type = [dict objectForKey:SKNPDFAnnotationTypeKey];
-        NSUInteger pageIndex = [[dict 
objectForKey:SKNPDFAnnotationPageIndexKey] unsignedIntValue];
-        NSString *string = [dict objectForKey:SKNPDFAnnotationTypeKey];
-        NSAttributedString *text = [dict objectForKey:SKNPDFAnnotationTextKey];
+        NSString *type = [dict objectForKey:NOTE_TYPE_KEY];
+        NSUInteger pageIndex = [[dict objectForKey:NOTE_PAGE_INDEX_KEY] 
unsignedIntValue];
+        NSString *string = [dict objectForKey:NOTE_CONTENTS_KEY];
+        NSAttributedString *text = [dict objectForKey:NOTE_TEXT_KEY];
         
         if (pageIndex == NSNotFound || pageIndex == UINT_MAX)
             pageIndex = 0;
@@ -80,10 +83,10 @@
     NSDictionary *dict;
     
     while (dict = [dictEnum nextObject]) {
-        NSString *type = [dict objectForKey:SKNPDFAnnotationTypeKey];
-        NSUInteger pageIndex = [[dict 
objectForKey:SKNPDFAnnotationPageIndexKey] unsignedIntValue];
-        NSString *string = [dict objectForKey:SKNPDFAnnotationTypeKey];
-        NSAttributedString *text = [dict objectForKey:SKNPDFAnnotationTextKey];
+        NSString *type = [dict objectForKey:NOTE_TYPE_KEY];
+        NSUInteger pageIndex = [[dict objectForKey:NOTE_PAGE_INDEX_KEY] 
unsignedIntValue];
+        NSString *string = [dict objectForKey:NOTE_CONTENTS_KEY];
+        NSAttributedString *text = [dict objectForKey:NOTE_TEXT_KEY];
         
         if (pageIndex == NSNotFound || pageIndex == UINT_MAX)
             pageIndex = 0;


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to