Sorry, today appears to Trip Over Your Own Tongue day for some of us. Slight corrections:

On Sep 14, 2009, at 17:59, Quincey Morris wrote:

[NSNumber alloc] always returns a subclass.

It's actually an implementation detail what [NSNumber alloc] returns. It might be some kind of placeholder object. It's more correct to say that [[NSNumber alloc] init...] always returns a subclass.

The simple solution is to add a number formatter to your text field. Then, changing the text field causes it to update the binding with a NSNumber value instead of a NSString value.

I didn't see the end of your post until too late. You already figured this part out.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to