Skip navigation.
 
mlRe: Save as, export to: implementation
FROM : Jeremy Dronfield
DATE : Sun Dec 05 21:12:14 2004

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%20Reference%20Library/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

Related mailsAuthorDate
mlSave as, export to: implementation Thomas Lachand-Rob… Dec 5, 19:06
mlRe: Save as, export to: implementation Jeremy Dronfield Dec 5, 21:12
mlRe: Save as, export to: implementation Thomas Lachand-Rob… Dec 5, 21:46
mlRe: Save as, export to: implementation M. Uli Kusterer Dec 6, 07:53
mlRe: Save as, export to: implementation Thomas Lachand-Rob… Dec 6, 18:01