Re: What method to override to initialize fields on a form?
Re: What method to override to initialize fields on a form?
- Subject: Re: What method to override to initialize fields on a form?
- From: j o a r <email@hidden>
- Date: Thu, 22 Aug 2002 11:53:02 +0200
Usually you know when the window will be shown since the event to open
the window from the user is routed through one of your controller
classes - and from there you can make sure to validate all your GUI
elements before putting the window on screen.
This could for example be the code in your main controller that handles
an event from a menu item to open the preference window:
- (void) openPreferencesWindow:(id) sender
{
[self validateAllControlsInPreferenceWindow];
[preferenceWindow makeKeyAndOrderFront: nil];
}
j o a r
On Thursday, Aug 22, 2002, at 07:31 Europe/Stockholm, Jiva DeVoe wrote:
AwakeFromNib only gets called when the nib is loaded, not every time
the
window is shown. I want to initialize a text box every time a window
is
shown. What method should I override?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.