• 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: Custom NSCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Custom NSCells
  • Next by Date: Re: Creating the app menu from scratch
  • Previous by thread: Re: Custom NSCells
  • Next by thread: re: SOAP server framework
  • Index(es):
    • Date
    • Thread