Re: NSButtonCell visibility in NSOutlineView.
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