• 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
Re: Overriding NSDocumentController problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Overriding NSDocumentController problem (From: Gerben Wierda <email@hidden>)

  • Prev by Date: Re: complex problem 2
  • Next by Date: Multithreaded drawing
  • Previous by thread: Re: Overriding NSDocumentController problem
  • Next by thread: application quit right after launching
  • Index(es):
    • Date
    • Thread