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 PROTECTED]> 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 PROTECTED]>
> 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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to