• 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: NSNumberFormatter 10.0+ vs. 10.4+
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumberFormatter 10.0+ vs. 10.4+


  • Subject: Re: NSNumberFormatter 10.0+ vs. 10.4+
  • From: "Kyle Sluder" <email@hidden>
  • Date: Sat, 26 Jan 2008 18:25:17 -0500

On 1/26/08, Jamie Phelps <email@hidden> wrote:
> Kyle, thanks for that, but it's not exactly what I'm talking about. I
> was aware of this issue. Maybe I can explain better. Consider these
> steps:

I was just pointing to a general reference on the changes between 10.0
and 10.4 behavior.

> When I do this, I get an error that the number does not match the
> format specified. I have to return to the cell and enter the value as
> 3%. If I change the version to 10.0+ and then enter 3, it happily
> applies the % to the entered value so that it conforms to the
> specified format. What I'd like to know is why this difference happens
> and if I use 10.4+, is there a graceful way to handle these errors
> other than the sheet that pops up by default? I guess I just don't
> understand why 10.4+ won't simply add the % to an entered value but
> 10.0+ does.

See http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSNumberFormatter_Class/Reference/Reference.html#//apple_ref/doc/uid/20000202-BCICDBCJ
(-[NSNumberFormatter getObjectValue:forString:range:error]).  This was
new in 10.4.  Perhaps implement the corresponding delegate method and
see what happens?

--Kyle Sluder
_______________________________________________

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: 
 >NSNumberFormatter 10.0+ vs. 10.4+ (From: Jamie Phelps <email@hidden>)
 >Re: NSNumberFormatter 10.0+ vs. 10.4+ (From: "Kyle Sluder" <email@hidden>)
 >Re: NSNumberFormatter 10.0+ vs. 10.4+ (From: Jamie Phelps <email@hidden>)

  • Prev by Date: Re: NSNumberFormatter 10.0+ vs. 10.4+
  • Next by Date: Re: NSViews resizeSubviewsWithOldSize is not called on resize
  • Previous by thread: Re: NSNumberFormatter 10.0+ vs. 10.4+
  • Next by thread: NSStatusItem menu items and custom views
  • Index(es):
    • Date
    • Thread