• 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
Subclassing NSDocumentController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subclassing NSDocumentController


  • Subject: Subclassing NSDocumentController
  • From: Georg Tuparev <email@hidden>
  • Date: Wed, 16 Oct 2002 08:40:36 +0200

Folks,

The documentation claims:

"2. Create an instance of your subclass in applicationWillFinishLauching:
The application will not ask for its shared document controller until after the applicationWillFinishLaunching: message is sent to its delegate. Therefore, you can create an instance of your sub-class of NSDocumentController in your application delegate's applicationWillFinishLaunching: method and that instance will be set as the shared document controller."

My reading of this is that I need just to instantiate my NSDocumentController subclass in applicationWillFinishLaunching: and the sharedDocumentController will return this instance. This seams not to be the case (an instance of NSDocumentController is returned instead). What am I missing?

tia

P.S. For Apple tech writers: the heading of the paragraph quoted above has a typo ;-)

-- georg --

"More Trees, less Bushes!"
_______________________________________________
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.

  • Follow-Ups:
    • Re: Subclassing NSDocumentController
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: how do I get the names of other runnings apps and start/stop one?
  • Next by Date: Re: How to avoid a Windows interface on OS X?
  • Previous by thread: Re: how do I get the names of other runnings apps and start/stop one?
  • Next by thread: Re: Subclassing NSDocumentController
  • Index(es):
    • Date
    • Thread