On Mon, 14 Jul 2008 10:59:44 +1200, "Paul Williams" <[EMAIL PROTECTED]> 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 PROTECTED], <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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to