Re: Overriding NSDocumentController problem
Re: Overriding NSDocumentController problem
- Subject: Re: Overriding NSDocumentController problem
- From: James DiPalma <email@hidden>
- Date: Tue, 26 Feb 2002 01:07:21 -0500
That sure does look like a bug.
From Apple's documentation titled "Creating a Subclass of
NSDocumentController":
To get your application to use your custom subclass of
NSDocumentController, you must ensure your subclass is the first
instance of NSDocumentController created when the application starts up.
There are two ways to do this.
1. Create your sub-class in the main nib file
2. Create an instance of your subclass in applicationWillFinishLauching:
On Monday, February 25, 2002, at 11:50 AM, Gerben Wierda wrote:
Putting the instance in the main nib file works. Still strange that
this other method as described in the Developer docs does not work.
Now, I know that the app's delegate applicationWillFinishLaunching is
called and in that method I create an instance of my own
DocumentController.
BTW, this response is not cross posted; thank you.
-jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.