Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding Error (accessing value for key) - but works with debugging on



Thanks mmalc

so after reading this, I see that dynamic is not necessary to explicitly
specify as it is the default... I also used the
"*Copy Obj-C 2.0 Method Declarations to Clipboard*"

which spit out my origText as retain (and not copy) as I originally had it
so I changed it to retain.

Also by reading this however, it explains that Core Data creates a proper
getter method for me so I am still unclear why I got get an error saying
that origText is not KVC compliant as it should be calling the setter
generated by CD.

The other unexplained thing is why now it is all the sudden working - did
changing copy to retain prevent some kind of border condition that was
causing the KVC error or do I still have something weird in my setup that
may cause a problem down the line?

On Fri, Mar 7, 2008 at 5:43 PM, mmalc crawford <email@hidden> wrote:

>
> On Mar 7, 2008, at 8:19 AM, Jason Kravitz wrote:
>
> > I am a bit confused about using dynamic properties and whether I
> > should be
> > using synthesize to create the setter/getters on these fields. Is it
> > appropriate (or more importantly, required) to add a line like this
> > to my
> > MyEntity NSManagedObject?
> > @synthesize origText,title;
>
> <
> http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html#//apple_ref/doc/uid/TP40002154-SW9
>  >
> see "Implementation".
>
> mmalc
>
>
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Binding Error (accessing value for key) - but works with debugging on (From: "Jason Kravitz" <email@hidden>)
 >Re: Binding Error (accessing value for key) - but works with debugging on (From: mmalc crawford <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.