Re: NSOutlineView and valueForKey:identifier
Re: NSOutlineView and valueForKey:identifier
- Subject: Re: NSOutlineView and valueForKey:identifier
- From: email@hidden
- Date: Fri, 17 May 2002 08:32:57 -0700
return [item valueForKey:[tableColumn identifier]];
and return [employees objectAtIndex:rowIndex] for
outlineView:child:OfItem:
On Friday, May 17, 2002, at 08:11 AM, Rob In der Maur wrote:
>
Can I use the smart coding as explained in Aaron Hillegass book on
>
table's datasource also for outline views. I mean the
>
return [person valueForKey:identifier]
>
trick....
>
>
Above this line the pointer to a person object is created like
>
Person *person = [employees objectAtIndex:rowIndex]
>
>
however the objectValueForTableColumn equivalent for NSOutlineView has
>
not a rowIndex as one of its argument; its signature is like
>
- (id)outlineView:(NSOutlineView *)ov
>
objectValueForTableColumn:(NSTableColumn *)tableColumn
>
byItem:(id)item
>
>
So how do I this same kind of trick for NSOutlineView.
_______________________________________________
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.