• 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: NSButtonCell visibility in NSOutlineView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButtonCell visibility in NSOutlineView.


  • Subject: Re: NSButtonCell visibility in NSOutlineView.
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 7 Jul 2010 10:24:12 -0600

On Jul 7, 2010, at 10:06 AM, Joshua Garnham wrote:

> It seems to be a pretty simple task but I am unsure how to go about it.
> I am looking to hide a checkbox in Column 0 if the row it's on has any children.
>
> How would I do this?

Try this: In your outline view delegate, implement -outlineView:dataCellForTableColumn:item: and return an empty cell in the place where you want to hide a cell. Otherwise, return the data cell for the column.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSButtonCell visibility in NSOutlineView.
      • From: Joshua Garnham <email@hidden>
References: 
 >NSButtonCell visibility in NSOutlineView. (From: Joshua Garnham <email@hidden>)

  • Prev by Date: NSButtonCell visibility in NSOutlineView.
  • Next by Date: Re: NSButtonCell visibility in NSOutlineView.
  • Previous by thread: NSButtonCell visibility in NSOutlineView.
  • Next by thread: Re: NSButtonCell visibility in NSOutlineView.
  • Index(es):
    • Date
    • Thread