NSStepper doesn't work with NSDecimalNumber (but everything else does)
NSStepper doesn't work with NSDecimalNumber (but everything else does)
- Subject: NSStepper doesn't work with NSDecimalNumber (but everything else does)
- From: Matteo Manferdini <email@hidden>
- Date: Mon, 24 Jul 2006 19:13:39 +0200
I have a problem binding a NSStepper with an attribute of an entity
in Core Data that is of type Decimal. At runtime, when I click on the
stepper, I get this message:
Unacceptable type of value for attribute: property = "value"; desired
type = NSDecimalNumber; given type = NSCFNumber; value = 1.
This is strange: everything else works nicely with this type of
binding (i.e. NSTextField or NSTableColumn). Why does NSStepper not
work?
Have I to write a Value Tranformer to get the NSCFNumber translated
or there is a way to make it work?
Thank you everyone.
Cheers.
---
Matteo Manferdini
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden