NSDocument saveDocumentAs with suggested name
NSDocument saveDocumentAs with suggested name
- Subject: NSDocument saveDocumentAs with suggested name
- From: "Jim O'Connor" <email@hidden>
- Date: Wed, 1 Mar 2006 09:36:50 -0600
I need to suggest a file name when a user saves my file for the first
time.
There was a hack for stuffing the desired text into the NSSavePanel
directly, but the constant required was yanked from the headers so
this appears to be a bad idea.
I can write my own "NSDocument saveDocumentAs:" handler and use
NSSavePanel
beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:
contextInfo:
But this requires I do some of the stuff which NSDocument
saveDocumentAs: handles for me otherwise (file type popup for one).
What is the best solution for this problem? Best being most
compatible and least work.
Thanks,
Jim
_______________________________________________
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