Re: NSDocumentController subclass not instantiated first?
Re: NSDocumentController subclass not instantiated first?
- Subject: Re: NSDocumentController subclass not instantiated first?
- From: Graham Cox <email@hidden>
- Date: Mon, 8 Mar 2010 16:45:50 +1100
On 08/03/2010, at 11:09 AM, Keith Blount wrote:
> 2. Create an instance of your subclass in the applicationWillFinishLaunching: method.
> (I did also try calling [[MyDocumentControllerSubclass alloc] init] in my app delegate’s -applicationWilFinishLaunching:)
My app does it this way and it has always worked without any special work needed. I'm not sure what your problem is, but doing it this way works for me, suggesting that the documentation is at least accurate.
--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