• 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: -viewDidMoveToWindow without subclassing? NSViewController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -viewDidMoveToWindow without subclassing? NSViewController?


  • Subject: Re: -viewDidMoveToWindow without subclassing? NSViewController?
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 15 Apr 2009 19:59:52 -0700


On 2009 Apr 15, at 19:15, Graham Cox wrote:

The usual way is to implement -windowDidLoad (a NSWindowController method) and put your code in there. This is called when the window is first shown by the window controller, since windows are constructed lazily.

Thanks Graham, but after trying this I discover that it suffers from the same problem as -awakeFromNib. Indeed it runs later than - awakeFromNib, but still not late enough because [self window] still returns nil in views that are not in the initially-selected tab view item.


_______________________________________________

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


  • Follow-Ups:
    • Re: -viewDidMoveToWindow without subclassing? NSViewController?
      • From: Graham Cox <email@hidden>
References: 
 >-viewDidMoveToWindow without subclassing? NSViewController? (From: Jerry Krinock <email@hidden>)
 >Re: -viewDidMoveToWindow without subclassing? NSViewController? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: C: treated as a path component
  • Next by Date: Re: -viewDidMoveToWindow without subclassing? NSViewController?
  • Previous by thread: Re: -viewDidMoveToWindow without subclassing? NSViewController?
  • Next by thread: Re: -viewDidMoveToWindow without subclassing? NSViewController?
  • Index(es):
    • Date
    • Thread