Re: Save as, export to: implementation
Re: Save as, export to: implementation
- Subject: Re: Save as, export to: implementation
- From: Jeremy Dronfield <email@hidden>
- Date: Sun, 5 Dec 2004 20:12:14 +0000
On 5 Dec 2004, at 6:06 pm, Thomas Lachand-Robert wrote:
Hi all,
This is probably a very basic question, but I can't find the answer in
the doc or the archive.
I want to export my app's document to PDF/HTML, so I implemented the
NSExportableAs key as described in
file:///Developer/ADC Reference Library/documentation/Cocoa/
Conceptual/Documents/Tasks/FAQ.html#//apple_ref/doc/uid/20000954
(BTW is it possible to do that in Xcode, instead of changing the
info.plist file directly?)
Then I actually get an accessory view in the save panel, but the two
new formats are greyed out in the popup menu and can't be selected! I
don't understand why: is there something else to do to export in a
different format?
Also a side question: do you think it's a good idea to use "Save as",
taking into account that my app can't read the PDF/HTML files back?
Maybe an "export" menu item would be clearer, but in that case, is
there a simple way to run the save panel with the appropriate format
selected?
Have you tried adding a "Save Copy As..." (or "Export" or whatever)
menu item and connecting it to First Responder's -saveDocumentTo:
action method? By default, "Save As" is connected to -saveDocumentAs:,
which isn't quite the same thing.
Hope this helps.
Regards,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden