Re: runModalForWindow, best solution to modal session
Re: runModalForWindow, best solution to modal session
- Subject: Re: runModalForWindow, best solution to modal session
- From: Keary Suska <email@hidden>
- Date: Wed, 14 Jan 2009 10:13:57 -0700
On Jan 13, 2009, at 12:21 PM, Alexander Reichstadt wrote:
If so, do you override -initWithWindowNibName:? The implementation
may matter.
No, I only override initWithWindow. Should I override it, and if so
should I call on NSBundle to load my nib there then?
I recommend that you allow NSWindoController to manage the nib, which
it will if you override -initWithWindowNibName: instead. That alone
may very well solve your problem. Note that you will *not* manually
load the nib in this override. NSWindoController will do that
automatically, although lazily (that's why you call -window, which
forces the nib to load).
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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