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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to