Re: How to run a panel that customizes a new NSDocument
Re: How to run a panel that customizes a new NSDocument
- Subject: Re: How to run a panel that customizes a new NSDocument
- From: Graham Cox <email@hidden>
- Date: Wed, 21 Oct 2009 15:57:04 +1100
On 21/10/2009, at 3:43 PM, Ben Haller wrote:
There must be a good, clean way to do this. Anyone?
Well, the expected way is to have different types for your documents.
You can still map them all to the same class, and discriminate in the -
initWithType:error: method to set up the appropriate model.
However, if you really can't or don't want to do that, I think what
you've done is right. Because you have a special designated
initializer, you have no option but to manually make the controllers
and add the document to the controller.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden