• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
sandboxing and filename extensions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: sandboxing and filename extensions
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Minor Scriptability Quesiton
  • Next by Date: Re: Document Window Versions Drop-down Menu
  • Previous by thread: Re: Minor Scriptability Quesiton
  • Next by thread: Re: sandboxing and filename extensions
  • Index(es):
    • Date
    • Thread