Re: Core Data Bindings Issue
Re: Core Data Bindings Issue
- Subject: Re: Core Data Bindings Issue
- From: "Frank D. Engel, Jr." <email@hidden>
- Date: Thu, 19 Aug 2010 19:09:59 -0400
Aha!
I did have custom accessors (I'd actually forgotten about them, I've
let this sit too long...), but when comparing against that
documentation I found the problem.
My notifications (didChange/etc.) were sent for the primitive values
instead of using the straight names -- "primitiveSomeField" rather
than "someField" -- changing that fixes the problem.
Looks like I did that with other ones too, so I'll fix those while I
am looking at it.
Thank you!
This had been driving me crazy...
On Aug 18, 2010, at 9:26 PM, Quincey Morris wrote:
Since your property is declared to have a scalar (float) value, it
must be a custom accessor of your custom NSManagedObject subclass.
(Core Data's internally-provided properties are all object values,
never scalars.) See "Scalar Values" in:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdNSAttributes.html#/
/apple_ref/doc/uid/TP40001919-SW13
That means you've probably forgotten to implement KVO compliance in
the setter for this property. (Overridden Core Data setters must
invoke didChange/willChangeValueForKey: explicitly.) See "Custom
Implementation" in:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html#/
/apple_ref/doc/uid/TP40002154-SW1
-----------------------------------------------------------
Frank D. Engel, Jr. <email@hidden>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten
Son, that whosoever believeth in him should not perish, but have
everlasting life.
$
_______________________________________________________
Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting
http://www.doteasy.com
_______________________________________________
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