• 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: NSDocumentController subclass not instantiated first?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocumentController subclass not instantiated first?


  • Subject: Re: NSDocumentController subclass not instantiated first?
  • From: Graham Cox <email@hidden>
  • Date: Mon, 8 Mar 2010 16:45:50 +1100

On 08/03/2010, at 11:09 AM, Keith Blount wrote:

> 2. Create an instance of your subclass in the applicationWillFinishLaunching: method.

> (I did also try calling [[MyDocumentControllerSubclass alloc] init] in my app delegate’s -applicationWilFinishLaunching:)


My app does it this way and it has always worked without any special work needed. I'm not sure what your problem is, but doing it this way works for me, suggesting that the documentation is at least accurate.

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSDocumentController subclass not instantiated first? (From: Keith Blount <email@hidden>)

  • Prev by Date: Transparent background for controls - some problems
  • Next by Date: Re: problems loading a sound with NSSound
  • Previous by thread: Re: NSDocumentController subclass not instantiated first? [SOLVED]
  • Next by thread: Re: short question but I don't know how to describe it
  • Index(es):
    • Date
    • Thread