• 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: Right way to load initial data in controls when opening a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Right way to load initial data in controls when opening a window


  • Subject: Re: Right way to load initial data in controls when opening a window
  • From: Jan Van Tol <email@hidden>
  • Date: Tue, 1 Apr 2003 21:58:36 -0600

You could probably override showWindow: in your NSWindowController subclass.

- (void)showWindow:(id)sender {
// Set values here.
[super showWindow:sender];
}

-Jan Van Tol

On Tuesday, April 1, 2003, at 04:53 PM, Steve Woodward wrote:

Let's say you open a window and want to fill in some of the controls with values (the window is in a separate nib). I create an instance of the new window's controller and load the nib. I use an init method to load up the data in the fields. But if the user closes the window then reopens it it still has the old values...I'm assuming that's because the window is not being released when it's closed, it's just being hidden. What is the proper method to insure that I can load up the values whether it's on the initial opening of the window or subsequent "unhiding"? Thanks in advance for any tips.

Steve W
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Right way to load initial data in controls when opening a window
      • From: Steve Woodward <email@hidden>
References: 
 >Right way to load initial data in controls when opening a window (From: Steve Woodward <email@hidden>)

  • Prev by Date: Re: Why isn't this working???? (NSURL and files)
  • Next by Date: Austin, TX. Mac Programmers SIG meeting this weekend April 5th....
  • Previous by thread: Re: Right way to load initial data in controls when opening a window
  • Next by thread: Re: Right way to load initial data in controls when opening a window
  • Index(es):
    • Date
    • Thread