• 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: Dumb question about radio buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dumb question about radio buttons


  • Subject: Re: Dumb question about radio buttons
  • From: Seth Willits <email@hidden>
  • Date: Thu, 23 Feb 2012 12:04:24 -0800

On Feb 23, 2012, at 5:58 AM, William Squires wrote:

>  I have a custom view with an NSBox containing an NSMatrix of button cells (radio buttons) When I created the NSMatrix, I told it I wanted 3 of them, but in the view hierarchy, I can see the NSMatrix under the NSBox, but it has 4 button cells under it, not the three I asked for.

The top one is the prototype cell for the matrix. It's duplicated when new cells are added.



> Also, even though I set the tag for each button cell  ….

The sender is the matrix, not the individual cell.


> Am I supposed to connect the NSMatrix to the action, and not the individual cells? If so, how do I ask for the cell's tag value?


You have selectedCell to determine which radio cell is selected, and can get its tag from that.


--
Seth Willits



_______________________________________________

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


  • Follow-Ups:
    • Re: Dumb question about radio buttons
      • From: William Squires <email@hidden>
References: 
 >Dumb question about radio buttons (From: William Squires <email@hidden>)

  • Prev by Date: Re: App Crashing in ARC !!
  • Next by Date: Re: NSView mouseDown truncated coordinates
  • Previous by thread: Dumb question about radio buttons
  • Next by thread: Re: Dumb question about radio buttons
  • Index(es):
    • Date
    • Thread