Re: -viewDidMoveToWindow without subclassing? NSViewController?
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