• 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: daniel oberhoff <email@hidden>
  • Date: Wed, 5 Mar 2003 12:53:39 +0100

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!???

daniel

Anfang der weitergeleiteten E-Mail:

Von: j o a r <email@hidden>
Datum: Mit, 5. Mdr 2003 11:36:27 Europe/Zurich
An: Anthony Cheung <email@hidden>
Cc: email@hidden
Betreff: Re: OutlineView

You need to tell the outline view where to fetch the data to display, right?
When you connected the outline view to your controller class you dragged a connection from the controller to the outline view, letting the controller view know where the outline view is. You need to do the reverse, ie. drag a connection from the outline view to the controller, and connect it to the delegate and data source outlets in the outline view, to in turn let it know where to fetch data.

The alternative way, not using IB, is to do something like this in awakeFromNib:

- (void) awakeFromNib
{
[myOutlineView setDataSource: self];
[myOutlineView setDelegate: self];
}

j o a r

On Wednesday, Mar 5, 2003, at 11:24 Europe/Stockholm, Anthony Cheung wrote:

I am not sure what you mean "reverse" springs. What I did is "Control-drag" from my controller to outline view and connect to my outline for NSOutlineView. In addition, what else do I need in awakeFromNib?
_______________________________________________
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.

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