Outlineview byitem.. what is "item" ?
Outlineview byitem.. what is "item" ?
- Subject: Outlineview byitem.. what is "item" ?
- From: Keith Pritchard <email@hidden>
- Date: Sun, 8 Sep 2002 20:40:35 +0100
(thanks to everyone on the list for all the help thus far, really
appreciated)...
I have an outlineview with controller that needs to respond to
- (id)outlineView:(NSOutlineView *)outlineView
objectValueForTableColumn:(NSTableColumn *)col byItem:(id)item
My problem is, what is "item" ?
in a standard tableview, I got a rowindex, indexed into an array and
returned a string...
In the outlineview, I seem to just get the column (which I use to
decide what to return) but no row information?
My datasource looks like:-
dictionary1 of dictionary2
ie:-
dictionary1
key object
123 dictionary2 -----> key=name, object="keith:,
key=subject,obj="sub1"
124 key=name, object="testname2" and so on
so I need to know what dictionary1 key it wants the column data for and
then I can look at the value in col and decide whether to give name or
subject....
Any clues appreciated.... once again, I know it's not the most
interesting problem in the world, but I'm learning!
thanks,
Keith
_______________________________________________
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.