• 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: Quincey Morris <email@hidden>
  • Date: Mon, 8 Nov 2010 09:54:06 -0800

On Nov 8, 2010, at 07:01, Vincent Habchi wrote:

> roughly, I would like to set up a view with radio buttons laid out on random places (well, actually not random, but from the buttons point of view, yes). I suppose I can't use a NSMatrix, so I'll have to use regular buttons (mimicking radio ones) and simulate radio behavior in my controller, is that right?

FWIW, I think you're making a UI mistake -- admittedly (if it *is* a mistake) a fairly subtle one.

It sounds like you're trying to do something roughly analogous to pins in MapKit. That is, you have a number of indicators, only one of which is in some kind of distinguished state. I think it's a mistake to think of these as radio buttons, even though radio button sets also have a number of indicators, only one of which is in some kind of distinguished state.

The problem is that the matrix-like arrangement of radio buttons is part of what identifies them *as* radio buttons (along with their gum-drop appearance), and unambiguously delineates which buttons belong to a single group. As soon as you randomize the geometry, you lose a lot of those semantic cues.

Thus, I'd suggest you'd end up with a better user experience by using something else (image views, or buttons with custom images) -- even something dot-like -- that isn't recognizably a standard radio button.

Arranging for only one button to be selected at a time is fairly trivial, I think, so you're not going to be investing a lot of time into reinventing the wheel.

Incidentally, using a subview or control for each indicator is a fairly heavyweight solution, with performance implications if there could be a lot of them. It may also be better to integrate them into the drawing of the underlying view (I'm assuming it's a custom view). That does mean reinventing the correct tracking behavior when they're clicked on, but that's not too hard either.

As I said: FWIW


_______________________________________________

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>)

  • Prev by Date: Re: Irregular layout of radio buttons
  • Next by Date: Re: Calling getter on const object
  • Previous by thread: Re: Irregular layout of radio buttons
  • Next by thread: Re: Irregular layout of radio buttons
  • Index(es):
    • Date
    • Thread