• 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: OutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OutlineView


  • Subject: Re: OutlineView
  • From: j o a r <email@hidden>
  • Date: Wed, 5 Mar 2003 13:04:46 +0100

The outlets is populated with the instances unloaded from the nib file when the nib is loaded, and this is not done in -init, hence you use awakeFromNib. If you try to access the outlets in init you will find that they are *nil*, harmless but pointless.

That said, you don't have to display anything before you want to. Simply de-select the checkbox called "Visible at launch time" for the window in IB. When the window is not automatically put on screen like this, you need to do it yourself in code:

[myWindow orderFront: nil];

j o a r

On Wednesday, Mar 5, 2003, at 12:53 Europe/Stockholm, daniel oberhoff wrote:

i wonder: why do i have to use the awakefromnib? i tend to make selfcontainede modules which contain all: teh OutlineView, the Datasource and the item objects and i would like them to initialize fully before even visible to the environment, so id like to do all that in init. But: when i overwrite init OR initWithFrame from NSCofntrol neither ever gets called!???
_______________________________________________
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.

  • Prev by Date: re: OutlineView
  • Next by Date: Re: iTunes playlist and ID number
  • Previous by thread: re: OutlineView
  • Next by thread: Functions in Cocoa
  • Index(es):
    • Date
    • Thread