• 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: NSComboBox woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBox woes


  • Subject: Re: NSComboBox woes
  • From: Keary Suska <email@hidden>
  • Date: Mon, 11 Dec 2006 10:40:22 -0700
  • Thread-topic: NSComboBox woes

on 12/11/06 10:15 AM, email@hidden purportedly said:

> I have a NSComboBox with the following entries: 10% 25% 100% 250%
> 300%. When the user enters 10 a % symbol is automatically inserted.
> They can't type 100. Is there a way to stop the % from being auto
> inserted until enter is pressed or it loses focus? I have tried using
> [zoomCombo setsAutoComplete:NO] but that didn't work. Is there
> something i can do in my NSNumberFormatter subclass?

The culprit is likely your formatter. Autocomplete shouldn't hinder entry
(you can verify this by detaching the formatter and testing).

The formatter shouldn't apply its format until the field loses focus, unless
formatter uses -isPartialStringValid:. Not sure whether NSNumberFormatter
does (if you don't in your subclass). The binding option "continuously
updates value" may effect this behavior--I am not sure.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >NSComboBox woes (From: Scott Andrew <email@hidden>)

  • Prev by Date: Re: Returning an NSDictionary/record to AppleScript command
  • Next by Date: NSArrayController, add:, default values
  • Previous by thread: NSComboBox woes
  • Next by thread: NSArrayController, add:, default values
  • Index(es):
    • Date
    • Thread