• 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
Re: NSOutlineView and valueForKey:identifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSOutlineView and valueForKey:identifier
      • From: Rob In der Maur <email@hidden>
References: 
 >NSOutlineView and valueForKey:identifier (From: Rob In der Maur <email@hidden>)

  • Prev by Date: Cocoa FBA
  • Next by Date: Developer web sites
  • Previous by thread: NSOutlineView and valueForKey:identifier
  • Next by thread: Re: NSOutlineView and valueForKey:identifier
  • Index(es):
    • Date
    • Thread