• 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
NSButtonCell Relating To NSTableView Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButtonCell Relating To NSTableView Object


  • Subject: NSButtonCell Relating To NSTableView Object
  • From: Oliver Cameron <email@hidden>
  • Date: Fri, 7 Jan 2005 21:40:06 +0000

Hi guys,

I have a NSTableView, and each row is an object. By object I mean a class (called Option) that holds information about a certain row, like a few strings and a few BOOL's.

In my NSTableView, I have 2 columns, one column is set by Interface Builder as a NSButtonCell, and the other is just a normal cell.

As I was saying before, my NSTableView uses an object for each row that holds properties, one property is "isEnabled", which is a BOOL, and this is set by the method "setEnabled:".

Now, I am having trouble understanding how I would go about relating the NSButtonCell to the Object, so that when the button was enabled, the Object in the same row's method, "setEnabled:", would be set to YES, and when the button was disabled, the method would be set to NO.

Any help at all is appreciated :-)

Thanks,
Oliver

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSButtonCell Relating To NSTableView Object
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: image drawing glitch
  • Next by Date: WYSIWIG drawing vs printing (was drawing scaled lines)
  • Previous by thread: multi-doc app arch question
  • Next by thread: Re: NSButtonCell Relating To NSTableView Object
  • Index(es):
    • Date
    • Thread