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 (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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com