• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Reminder: Problem subclassing NSDocumentController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: EXC_BAD_ACCESS in an strange place
  • Next by Date: Re: EXC_BAD_ACCESS in an strange place
  • Previous by thread: Re: Making a NSFormatter receive special keys
  • Next by thread: Bill Cheesman on Keyed Archiving
  • Index(es):
    • Date
    • Thread