Re: Do something before creating a new file
Re: Do something before creating a new file
- Subject: Re: Do something before creating a new file
- From: "W. W. Gilpin" <email@hidden>
- Date: Wed, 1 Dec 2004 22:50:09 -0600
Is subclassing NSDocumentController my only choice?
Tony,
Not necessarily.
You can use Interface Builder to direct your File|New menu item's
action to an instance & method of a class of your own creation. Then
when your UI is done, do:
[[NSDocumentController sharedDocumentController]
openUntitledDocumentOfType:display:];
Or, it sounds like for your purpose it might make more sense to create
the document file based on the results of your UI, and then open the
new file thusly:
[[NSDocumentController sharedDocumentController]
openDocumentWithContentsOfFile:display:];
HTH,
W. W. Gilpin
email@hidden
_______________________________________________
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