• 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: What method to override to initialize fields on a form?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >What method to override to initialize fields on a form? (From: Jiva DeVoe <email@hidden>)

  • Prev by Date: Re: transparent NSTextView
  • Next by Date: (NSThread) crash after pool release
  • Previous by thread: What method to override to initialize fields on a form?
  • Next by thread: RE: What method to override to initialize fields on a form?
  • Index(es):
    • Date
    • Thread