Revision: 7095
http://skim-app.svn.sourceforge.net/skim-app/?rev=7095&view=rev
Author: hofman
Date: 2011-02-10 18:09:01 +0000 (Thu, 10 Feb 2011)
Log Message:
-----------
open empty notes document from show skim notes service when there are no notes
Modified Paths:
--------------
trunk/SKDocumentController.m
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2011-02-10 17:49:19 UTC (rev 7094)
+++ trunk/SKDocumentController.m 2011-02-10 18:09:01 UTC (rev 7095)
@@ -297,12 +297,11 @@
data = [[SKNExtendedAttributeManager sharedManager]
extendedAttributeNamed:SKIM_NOTES_KEY atPath:[theURL path] traverseLink:YES
error:&error];
}
- if (data)
- document = [self
makeUntitledDocumentOfType:SKNotesDocumentType error:&error];
+ document = [self
makeUntitledDocumentOfType:SKNotesDocumentType error:&error];
+ [document setSourceFileURL:theURL];
- if ([document readFromData:data ofType:SKNotesDocumentType
error:&error]) {
+ if (data == nil || [document readFromData:data
ofType:SKNotesDocumentType error:&error]) {
[self addDocument:document];
- [document setSourceFileURL:theURL];
[document makeWindowControllers];
[document showWindows];
} else {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit