• 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
NSStepper doesn't work with NSDecimalNumber (but everything else does)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Can switch be used here?
  • Next by Date: NSNetService Won't Allow Subscription
  • Previous by thread: Re: Can switch be used here?
  • Next by thread: NSNetService Won't Allow Subscription
  • Index(es):
    • Date
    • Thread