• 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: Contextual Menus for an NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Contextual Menus for an NSOutlineView


  • Subject: Re: Contextual Menus for an NSOutlineView
  • From: John Hörnkvist <email@hidden>
  • Date: Thu, 22 Nov 2001 12:39:49 +0100

On Thursday, November 22, 2001, at 11:59 , Justin Wood wrote:

Anyway! The long and short of it is, I have no idea what to do, and I'd
appreciate any advice anyone might have, I'm sure there must be a relatively
simple way of doing this, it doesn't seem to be a feature that is quite 'out
there'.

Your problem is most likely that NSOutlineView reuses one cell for all rows in a column.

To get around that, you can subclass NSTableColumn and implement - (id)dataCellForRow:(int)row; to return a different cell for each row.

Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com


References: 
 >Contextual Menus for an NSOutlineView (From: Justin Wood <email@hidden>)

  • Prev by Date: Contextual Menus for an NSOutlineView
  • Next by Date: Re: multithreading textviews
  • Previous by thread: Contextual Menus for an NSOutlineView
  • Next by thread: Re: Contextual Menus for an NSOutlineView
  • Index(es):
    • Date
    • Thread