Re: NSOutlineView and valueForKey:identifier
Re: NSOutlineView and valueForKey:identifier
- Subject: Re: NSOutlineView and valueForKey:identifier
- From: email@hidden
- Date: Fri, 17 May 2002 12:25:11 -0700
did you set the identifiers in the columns? apparently not.
On Friday, May 17, 2002, at 12:15 PM, Rob In der Maur wrote:
Doesn't seem to work. Compiles without problem, but when I run it, I get
[<Stock 0x20ab820> valueForKey:]: lookup of unknown key: '(null)'.
This class does not have an instance variable of the name (null) or
_(null), nor a method of the name (null), _(null), get(null), or
_get(null)
To me that looks like valueForKey:identifier doesn't resolve to the
instance variable I want to. I checked instance variables and
identifiers to ensure they are the same. Am I missing something here...
cheers
Rob
On Friday, May 17, 2002, at 05:32 , email@hidden wrote:
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.
o#?
Rob In der Maur
_______________________________________________
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.