Re: OutlineView
Re: OutlineView
- Subject: Re: OutlineView
- From: j o a r <email@hidden>
- Date: Wed, 5 Mar 2003 10:50:56 +0100
You need to set the controller to be the data source and delegate of
your outline view. You can do this in IB by dragging "reverse" springs
from the controller to the outline view, or in code in "awakeFromNib".
j o a r
On Wednesday, Mar 5, 2003, at 10:40 Europe/Stockholm, Anthony Cheung
wrote:
I am trying implement a OutlineView to my application. I have added
that through IB, created an outlet for it and the link between my
controller class. I have implemented the following
- (id)outlineView:(NSOutlineView *)olv child:(int)index
ofItem:(id)item;
- (BOOL)outlineView:(NSOutlineView *)olv isItemExpandable:(id)item;
- (int)outlineView:(NSOutlineView *)olv
numberOfChildrenOfItem:(id)item;
- (id)outlineView:(NSOutlineView *)olv
objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item;
in my source. I have set breakpoints. When I debug my program, I found
out that those four procedures were never be visited. I think this may
be the reason why I can't loaded data to the table.
_______________________________________________
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: | |
| >OutlineView (From: Anthony Cheung <email@hidden>) |