Re: Custom NSCells
Re: Custom NSCells
- Subject: Re: Custom NSCells
- From: Matt Neuburg <email@hidden>
- Date: Sun, 13 Jul 2008 20:48:00 -0700
- Thread-topic: Custom NSCells
On Mon, 14 Jul 2008 10:59:44 +1200, "Paul Williams" <email@hidden> said:
>Hi,
>
>I am trying to find a way where I can use a NSTableView to display a list of
>buttons(NSButtonCell) which can be hidden depending on the state of the
>program.
>I have tried using a custom NSCells, but the only object I can can pass to
>my custom cell is a NSCFBoolean.
>Is there a way I can pass more information to my custom cell so I can have a
>button which can be set to On,Off or hidden.
I think a typical approach is to implement
tableView:willDisplayCell:forTableColumn:row: in the table view's delegate.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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