Reminder: Problem subclassing NSDocumentController
Reminder: Problem subclassing NSDocumentController
- Subject: Reminder: Problem subclassing NSDocumentController
- From: Andreas Mayer <email@hidden>
- Date: Fri, 23 Aug 2002 19:55:06 +0200
I found this in the archives:
FROM: James DiPalma
DATE: 2002-02-26 07:07
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
Looks like this is still not fixed.
Any subclass of NSDocumentController just returns the
sharedDocumentController when calling 'init'.
Please, Apple, either fix that bug or update the Documentation.
bye. Andreas.
_______________________________________________
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.