• 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: Quincey Morris <email@hidden>
  • Date: Sun, 7 Mar 2010 16:44:36 -0800

On Mar 7, 2010, at 16:09, Keith Blount wrote:

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

Can you set a symbolic breakpoint on 'sharedDocumentController' and simply find out when and where it's first called?

Also, maybe set one in -[MyDocumentControllerSubclass init] and make sure it isn't returning nil.

I don't see any design problem in subclassing NSDocumentController, but, incidentally, I think its 'documents' property is KVO-observable. That might be a simpler route to your goal.


_______________________________________________

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: Re: short question but I don't know how to describe it
  • Next by Date: Re: NSDocumentController subclass not instantiated first?
  • Previous by thread: NSDocumentController subclass not instantiated first?
  • Next by thread: Re: NSDocumentController subclass not instantiated first?
  • Index(es):
    • Date
    • Thread