Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Document Types



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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Multiple Document Types (From: Thom McGrath <email@hidden>)
 >Re: Multiple Document Types (From: mmalcolm crawford <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.