Revision: 6921
http://skim-app.svn.sourceforge.net/skim-app/?rev=6921&view=rev
Author: hofman
Date: 2010-12-03 00:25:10 +0000 (Fri, 03 Dec 2010)
Log Message:
-----------
make fdf unreadable by notes document
Modified Paths:
--------------
trunk/SKNotesDocument.m
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2010-12-02 15:58:30 UTC (rev 6920)
+++ trunk/SKNotesDocument.m 2010-12-03 00:25:10 UTC (rev 6921)
@@ -253,6 +253,15 @@
return data;
}
++ (NSArray *)readableTypes {
+ NSArray *types = [super readableTypes];
+ if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_5)
+ return types;
+ NSMutableArray *mutableTypes = [[types mutableCopy] autorelease];
+ [mutableTypes removeObject:SKNotesFDFDocumentType];
+ return mutableTypes;
+}
+
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError
**)outError {
BOOL didRead = NO;
NSArray *array = nil;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit