• 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
Re: Binding Error (accessing value for key) - but works with debugging on
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Binding Error (accessing value for key) - but works with debugging on
  • From: "Jason Kravitz" <email@hidden>
  • Date: Fri, 7 Mar 2008 18:13:15 +0100

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:

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>)

  • Prev by Date: Re: GetMonitorFromWindow
  • Next by Date: (Solved) Localized Apple Help (HTML) doesn't load
  • Previous by thread: Re: Binding Error (accessing value for key) - but works with debugging on
  • Next by thread: (Solved) Localized Apple Help (HTML) doesn't load
  • Index(es):
    • Date
    • Thread