• 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 is called AFTER awakeFromNib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is called AFTER awakeFromNib?


  • Subject: Re: What is called AFTER awakeFromNib?
  • From: Clark Cox <email@hidden>
  • Date: Thu, 8 Apr 2004 22:25:08 -0400

On Apr 08, 2004, at 22:08, Michael Becker wrote:

> Hi!
>
> My application needs to load some data from a remote server at
> startup. If I place the code which does this in the awakeFromNib
> method, the window is not displayed and the icon bounces in the dock
> while the load takes place. This is the expected behaviour.
> I'd obviously like it better if the window would be already on the
> screen when the load takes place. But as several objects in my GUI are
> set up depending on the loaded data, I need to perform the load
> automatically (as opposed to having the user hit an "update" button).
>
> So my question: Is there a method that is called AFTER the window has
> been loaded and displayed? I know about NSWindowController's
> windowDidLoad, but I am not sure about WHO my WindowController is....
> probably not the File's Owner, right?

Make some object of yours the application's delegate (in your nib,
connect the "delegate" outlet to your object). Then in that class,
implement -applicationDidFinishLaunching:.


--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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 is called AFTER awakeFromNib? (From: Michael Becker <email@hidden>)

  • Prev by Date: What is called AFTER awakeFromNib?
  • Next by Date: OT - Translators
  • Previous by thread: What is called AFTER awakeFromNib?
  • Next by thread: Re: What is called AFTER awakeFromNib?
  • Index(es):
    • Date
    • Thread