Revision: 5482
http://skim-app.svn.sourceforge.net/skim-app/?rev=5482&view=rev
Author: hofman
Date: 2009-07-15 10:58:10 +0000 (Wed, 15 Jul 2009)
Log Message:
-----------
also allow choosing folders from the Open panel
Modified Paths:
--------------
trunk/SKDocumentController.m
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2009-07-14 23:36:23 UTC (rev 5481)
+++ trunk/SKDocumentController.m 2009-07-15 10:58:10 UTC (rev 5482)
@@ -169,6 +169,12 @@
object:self userInfo:[NSDictionary
dictionaryWithObjectsAndKeys:document, @"document", nil]];
}
+
+- (NSInteger)runModalOpenPanel:(NSOpenPanel *)openPanel forTypes:(NSArray
*)extensions {
+ [openPanel setCanChooseDirectories:YES];
+ return [super runModalOpenPanel:openPanel forTypes:extensions];
+}
+
- (NSString *)readableTypeFromFileExtension:(NSString *)extension {
if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4)
return nil;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit