• 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: Marc Blatt <email@hidden>
  • Date: Sun, 17 Aug 2008 13:42:27 -0700

THX Keary, but I'm thinking that this is either a bug or not the proper way to approach the 'nil' issue when dealing with an app that is 10.4+. The reason I say this is that, when I switch the formatter in IB from Mac OS X 10.4+ to Mac OS X 10.0+ in the Number Formatter Attributes, setNilValueForKey: gets called, the NSLog message displays, and the nil value gets set to 0.00 just as it should be.

Anyone know if this approach is deprecated and, if so, how it should be handled for apps that are 10.4+ only. Otherwise, I'll file a Radar Bug Report.

Thanks again,

Marc

On Aug 17, 2008, at 8:06 AM, Keary Suska wrote:

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

_______________________________________________

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


References: 
 >Re: setNilValueForKey: not called when Number Formatter is nil (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: creating files to write data to?
  • Next by Date: Problem redirecting NSLog() output to stderr
  • Previous by thread: Re: setNilValueForKey: not called when Number Formatter is nil
  • Next by thread: building a command-line tool as a bundle
  • Index(es):
    • Date
    • Thread