Re: NSButtonCell visibility in NSOutlineView.
Re: NSButtonCell visibility in NSOutlineView.
- Subject: Re: NSButtonCell visibility in NSOutlineView.
- From: Joshua Garnham <email@hidden>
- Date: Wed, 7 Jul 2010 17:17:24 +0000 (GMT)
Thanks, that worked just how I wanted it too!
________________________________
From: Nick Zitzmann <email@hidden>
To: Joshua Garnham <email@hidden>
Cc: email@hidden
Sent: Wed, 7 July, 2010 17:24:12
Subject: Re: NSButtonCell visibility in NSOutlineView.
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