Re: OutlineView
Re: OutlineView
- Subject: Re: OutlineView
- From: j o a r <email@hidden>
- Date: Wed, 5 Mar 2003 11:36:27 +0100
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.