Re: NSComboBox woes
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