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
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to