• 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
Re: NSSavePanel and file formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSavePanel and file formats


  • Subject: Re: NSSavePanel and file formats
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 20 Apr 2009 09:57:04 -0700

On Apr 20, 2009, at 03:45, Graham Cox wrote:

You want to name a folder, say <Foo>, but then place files inside called e.g. Foo_001, Foo_002 etc?

No, I mean there are, say, export formats A, B and C. Assuming the document file name is something like 'myData.data', export format A should show a suggested name like 'myData.a'; format B should show a suggested name like 'myData B Stuff'; format C should show a suggested name like 'myData C Stuff'. In the latter cases, the name in the Save panel's filename text field is the folder name, not a file name. (The names of the files inside those folders is fixed.)


Not that this is really about folders. Another hypothetical example might be exporting information from a contacts database as text files. The export formats might be 'Names Only', 'Names & Addresses' and 'Names and Phone Numbers'; the corresponding suggested files names might be 'myDatabase Names.txt', 'myDatabase Addresses.txt' and 'myDatabase Phones.txt', so that different exports do not by default overwrite each other. File name suffixes are the only choice in this case since the extension doesn't distinguish between them.

On Apr 20, 2009, at 07:08, Adam R. Maxwell wrote:

Can you use NSExportableTypes or NSExportableAs in Info.plist? It's been a long time since I had to deal with that, but ISTR it will handle the types popup for you (and hopefully the extension as well).

I didn't know about that either, but it doesn't exactly help here, since handling the extension isn't the problem any more. (It was when I first asked the question.)


Also, I'm trying to implement what appears to be a fairly new recommendation in the HIG, which uses Export As… on the File menu to replace Save a Copy As…, Save To…, or Save As… to a format the application can't open. That implies keeping the export file formats out of the Save As… dialog, and keeping document types out of the Export As… dialog, which NSExportableTypes doesn't seem designed to do.


_______________________________________________

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


References: 
 >NSSavePanel and file formats (From: Quincey Morris <email@hidden>)
 >Re: NSSavePanel and file formats (From: Graham Cox <email@hidden>)
 >Re: NSSavePanel and file formats (From: Quincey Morris <email@hidden>)
 >Re: NSSavePanel and file formats (From: Graham Cox <email@hidden>)

  • Prev by Date: printer name via NSPrintInfo after running Page Setup
  • Next by Date: Re: Select Object in NSDictionaryController
  • Previous by thread: Re: NSSavePanel and file formats
  • Next by thread: Re: NSSavePanel and file formats
  • Index(es):
    • Date
    • Thread