• 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: setNilValueForKey: not called when Number Formatter is nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: setNilValueForKey: not called when Number Formatter is nil
      • From: Marc Blatt <email@hidden>
References: 
 >setNilValueForKey: not called when Number Formatter is nil (From: Marc Blatt <email@hidden>)

  • Prev by Date: Re: Table column header not highlighted at first
  • Next by Date: How to enumerate directory contents?
  • Previous by thread: setNilValueForKey: not called when Number Formatter is nil
  • Next by thread: Re: setNilValueForKey: not called when Number Formatter is nil
  • Index(es):
    • Date
    • Thread