• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Outlineview byitem.. what is "item" ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: windowControllerDidLoadNib problem
  • Next by Date: Re: windowControllerDidLoadNib problem
  • Previous by thread: Re: windowControllerDidLoadNib problem
  • Next by thread: Re: Outlineview byitem.. what is "item" ?
  • Index(es):
    • Date
    • Thread