• 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: Stopping actions mid stream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stopping actions mid stream


  • Subject: Re: Stopping actions mid stream
  • From: Graham Cox <email@hidden>
  • Date: Sun, 6 Jul 2008 22:21:39 +1000

The preferred way to do this is to prevent the user clicking the button if it's not appropriate by greying it out.

This is far more user-friendly than rebuking a user for having the audacity to click your button when they shouldn't have, even though they had no visual cue that they shouldn't. The "permit then rebuke" form of input validation is the hallmark of bad UI design. Sadly, it's all too common.


G.


On 6 Jul 2008, at 5:04 pm, Jeff Brown wrote:

I've set up matrix with 2 radio buttons (1 and 2) with a delegate method that gets run when the matrix gets clicked. Lets say radio button 1 is highlighted and someone clicks on radio button 2. The delegate method has some code that checks whether the radio buttons are allowed to be changed from 1 to 2 and if not, sends an alert to the user.
My problem is how can I stop the radio buttons themselves changing from 1 to 2. When programming in Visual Basic there was a method that stopped the action from completing. Is there something similar I can do here or some other way.

_______________________________________________

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: Stopping actions mid stream
      • From: Peter Zegelin <email@hidden>
References: 
 >Stopping actions mid stream (From: Jeff Brown <email@hidden>)

  • Prev by Date: Re: Method Sees Populated Array As Empty
  • Next by Date: Re: Guidelines for Cocoa frameworks supporting garbage collection?
  • Previous by thread: Re: Stopping actions mid stream
  • Next by thread: Re: Stopping actions mid stream
  • Index(es):
    • Date
    • Thread