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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to