• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: glenn andreas <email@hidden>
  • Date: Sat, 20 Oct 2007 08:55:52 -0500


On Oct 20, 2007, at 6:38 AM, Eric PETIT wrote:

Is it possible to filter in real time the data entry of a numerical value in an input field by limiting the data entry between a min and a max value ?
In Interface Builder, I can define a formatter by fixing a minimum and a maximum value but the checking is made only after the validation of the data entry (by carriage return for example).
I don't want this but I want a filtering in real time during the data entry.
How can I do that ?
Thank you

In general, if you could, it would result in a hideous UI.

If your min was 10 and a max of 100, with a current value of 50, how would they change this to 90? The most logical way would be to select the value and start typing - the problem is that they type a 9 and suddenly the value is 9, which is less than the minimum, so either an error appears or it somehow prevents this. Instead, the only way would be to select the "5" only and then type a "9", which isn't the most pleasant experience.

Now what if they wanted 92? They had to first select the "5", type a "9", select the "0", type a "2". They now wanted 93 - the most logical thing would be to backspace over the 2 and type a 3, but they can't do this because it changes it to 9 which is less than the min.

Worse, consider a range of 5 to 15, with a current value of 8. There is no easy way for them to type 10 - they can't add the 1 in front of the thing (since 18 is too large) and they can't select the 8 and replace it with a 1 (since that is too small). They would have to select the 8, type a 5, move the cursor left, add a 1 in front of it, and then go and change the 5 to 0. And if the range were 5..14, there is no way at all...

If you need the user to enter a value between two (relatively close) values, perhaps a slider would be a better approach?


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art



_______________________________________________

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: (no subject)
      • From: Scott Ribe <email@hidden>
References: 
 >(no subject) (From: Eric PETIT <email@hidden>)

  • Prev by Date: What is a task?
  • Next by Date: Re: What is a task?
  • Previous by thread: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread