Revision: 5015
http://skim-app.svn.sourceforge.net/skim-app/?rev=5015&view=rev
Author: hofman
Date: 2008-12-01 17:03:57 +0000 (Mon, 01 Dec 2008)
Log Message:
-----------
Return an empty array for notes when a PDF bundle does not contain a .skim
file, because that indicates the file does not have notes, which is not an
error.
Modified Paths:
--------------
trunk/SkimNotes/NSFileManager_SKNExtensions.m
Modified: trunk/SkimNotes/NSFileManager_SKNExtensions.m
===================================================================
--- trunk/SkimNotes/NSFileManager_SKNExtensions.m 2008-11-30 13:21:32 UTC
(rev 5014)
+++ trunk/SkimNotes/NSFileManager_SKNExtensions.m 2008-12-01 17:03:57 UTC
(rev 5015)
@@ -154,7 +154,7 @@
if ([data length]) {
@try { notes = [NSKeyedUnarchiver unarchiveObjectWithData:data]; }
@catch (id e) {}
- } else if (data) {
+ } else if (data || skimFile == nil) {
notes = [NSArray array];
}
}
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