• 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 (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

I just noticed that I had a rogue NSTextView hidden under the visible one
and I was likely binding both of them to he same field which probably
explains why it would crash with an error sometimes and other times run just
fine. I cleaned up my window and it appears to be working smoothly now.

thanks for the pointer to the dynamic vs. synthesize info

On Fri, Mar 7, 2008 at 6:13 PM, Jason Kravitz <email@hidden> wrote:

> 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

  • Prev by Date: Re: NSTextView changes font
  • Next by Date: Re: NSCollectionView and default selections ...
  • Previous by thread: problem generating PDF using quartz
  • Next by thread: How to set a custom glyph generator?
  • Index(es):
    • Date
    • Thread