• 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
Deselecting an NSButtonCell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deselecting an NSButtonCell?


  • Subject: Deselecting an NSButtonCell?
  • From: Nick Forge <email@hidden>
  • Date: Mon, 2 Apr 2007 18:10:55 +1000

I have an NSMatrix with 3 NSButtonCells in it, as a three way radio button selector. If I click on one of the radio buttons, whatever was previously selected is deselected. If, however, I select a button programmatically, the old one doesn't get deselected. If I try and use deselectAllCells, nothing happens.

This line of code will select a button, but won't deselect the old one.
	[hibernateMode selectCellAtRow:0 column:0];

This line of code doesn't appear to do anything at all.
	[hibernateMode deselectAllCells];

(hibernateMode is my NSMatrix outlet.)

How can I programatically deselect the old button? Is there a better method to use then selectCellAtRow:column:?


Thanks in advance, Nick Forge _______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Deselecting an NSButtonCell?
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: updating UI during long loop using cocoa objective-c
  • Next by Date: Re: Deselecting an NSButtonCell?
  • Previous by thread: Re: updating UI during long loop using cocoa objective-c
  • Next by thread: Re: Deselecting an NSButtonCell?
  • Index(es):
    • Date
    • Thread