NSDocument/NSSavePanel and controlling filenames
NSDocument/NSSavePanel and controlling filenames
- Subject: NSDocument/NSSavePanel and controlling filenames
- From: Robert Martin <email@hidden>
- Date: Thu, 27 Jan 2005 17:32:44 -0500
Is there a way to set filenames in a savePanel in response to the user
selecting different formats?
Where the file is saved is up to the user - but the filename is not
really up to the user to choose - it is determined by values inside the
document - (because most applications that use the output file treat
the filename as a key) - and different formats require different
permutations. When the user clicks on a different format, I'd like to
provide instant feedback on the name change.
I can easily set an initial filename for a specific format during the
prepareSavePanel delegate method. But when the user selects a different
format, I cannot figure out how to make the SavePanel display the new
computed name. I can change the document's type and filename, but this
seems to have no immediate effect on the savePanel.
By the time panel:userEnteredFilename:confirmed: is called, it's too
late to change the filename.
Is it possible to use the standard classes for this, or do I have to
subclass NSSavePanel?
Apologies if I'm missing something obvious, but I can't find anything
in the archives.
Thanks, Rob
_______________________________________________
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