Re: Strange Core Data problem after upgrade
Re: Strange Core Data problem after upgrade
- Subject: Re: Strange Core Data problem after upgrade
- From: Volker in Lists <email@hidden>
- Date: Thu, 8 Oct 2009 14:06:09 +0200
Hi,
you need to add a NSNumberFormatter to the text field. Number/String
conversion does not happen automatically.
Volker
Am 08.10.2009 um 13:49 schrieb Rui Pacheco:
Hi,
Problem A,
Yes, all classes are set correctly in the data modeller.
Also, regarding problem B, this is getting stranger.
If I set the type of the variable to int 32 in the modeller and
NSNumber in the class and then assign it a value using [entity
value:forKey] it works just fine. But if I add an NSTextField to IB
and bind it to that property, it fails with the stringValue error.
If, on the other hand, I set the type to string, on the modeller and
on the class, IB will work just fine.
This makes me think that somewhere IB isn't converting from string
to integer, but I don't remember having to set that manually.
Rui
_______________________________________________
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