sandboxing and filename extensions
sandboxing and filename extensions
- Subject: sandboxing and filename extensions
- From: Scott Ribe <email@hidden>
- Date: Tue, 14 May 2013 22:16:09 -0600
On 10.6.8, if I enter a plain filename without extension, the save panel returns the path with the extension appended. On 10.7.5, where sandboxing kicks in and this actually matters because the code cannot normalize the returned name, the save panel returns the path WITHOUT extension. The code is simple enough:
NSSavePanel * pnl = [NSSavePanel savePanel];
[pnl setTitle: ...];
[pnl setPrompt: ...];
[pnl setNameFieldLabel: ...];
[pnl setAllowedFileTypes: [NSArray arrayWithObject: @"pdf" ]];
[pnl setAllowsOtherFileTypes: NO];
[pnl beginSheetForDirectory: ...];
Is there something I need to configure in my app's info plist to specify that the app is expected to create .pdf files???
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden