• 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: Irregular layout of radio buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Irregular layout of radio buttons


  • Subject: Re: Irregular layout of radio buttons
  • From: Lee Ann Rucker <email@hidden>
  • Date: Mon, 8 Nov 2010 13:22:25 -0800
  • Acceptlanguage: en-US
  • Thread-topic: Irregular layout of radio buttons

On Nov 8, 2010, at 11:17 AM, vincent habchi wrote:

> Le 8 nov. 2010 à 18:35, Keary Suska a écrit :
>
>> Well, kind of. You can still use radio buttons--you will simply have to mimic the "radio" effect across the unrelated buttons. Not difficult really...
>
> Indeed, that's not very hard to do. But I just expected to be able to define radio button groups outside a well-defined-table-like-layout.

It is annoying that you can't do it; Java let you make a group of radio buttons without affecting their layout.

We have several places where we need this, so I created a custom NSView subclass that found all its radio buttons and added observers on "state" with option NSKeyValueObservingOptionNew. When a button's state changed to NSOnState, it set all the other buttons to NSOffState. _______________________________________________

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: Irregular layout of radio buttons
      • From: vincent habchi <email@hidden>
References: 
 >Irregular layout of radio buttons (From: Vincent Habchi <email@hidden>)
 >Re: Irregular layout of radio buttons (From: Keary Suska <email@hidden>)
 >Re: Irregular layout of radio buttons (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: Calling getter on const object
  • Next by Date: Red spelling underline draws incorrectly in layer-backed views
  • Previous by thread: Re: Irregular layout of radio buttons
  • Next by thread: Re: Irregular layout of radio buttons
  • Index(es):
    • Date
    • Thread