Re: setNilValueForKey: not called when Number Formatter is nil
Re: setNilValueForKey: not called when Number Formatter is nil
- Subject: Re: setNilValueForKey: not called when Number Formatter is nil
- From: Keary Suska <email@hidden>
- Date: Sun, 17 Aug 2008 09:06:26 -0600
- Thread-topic: setNilValueForKey: not called when Number Formatter is nil
8/17/08 2:42 AM, also sprach email@hidden:
> The table view text cell updates properly so long as an empty value
> (aka 'nil') is not attempted (which results in a format error even
> though setNilValueForKey: has been overridden). The NSLog statement
> within setNilValueForKey: some unknown reason never gets called. I've
> also performed a "Clean All" and still the same results.
The formatter is called before your model receives the update message. See
the bindings message flow
<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Con
cepts/MessageFlow.html#//apple_ref/doc/uid/TP40002149-186285>
If a nil value is allowed, you should let it pass your formatter's
validation.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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