Re: Multiple Document Types
Re: Multiple Document Types
- Subject: Re: Multiple Document Types
- From: Thom McGrath <email@hidden>
- Date: Sun, 30 Oct 2005 09:59:46 -0500
I was reading other responses that say it is not necessary to
subclass NSDocumentController just to have multiple document types.
The code posted is in an IBAction in my application's main
controller. It's connected to a menu item. I simply need to create a
new document of the specified type, rather than of the default type.
--
Thom McGrath, <http://www.thezaz.com/>
"You don't need eyes to see, you need vision" - Maxi Jazz in
"Reverence" by Faithless
On Oct 30, 2005, at 12:27 AM, mmalcolm crawford wrote:
It's not entirely clear what you're doing here.
Is the code above in a method of a subclass of NSDocument?
There should be no need for this. An appropriate instance will be
created and opened automatically if you have set up the document
descriptions correctly in Xcode. If you need a means to create new
instances of specific classes, create a custom subclass of
NSDocumentController.
_______________________________________________
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