Re: CoreData and ManagedObjects
Re: CoreData and ManagedObjects
- Subject: Re: CoreData and ManagedObjects
- From: "Bobby B" <email@hidden>
- Date: Thu, 23 Mar 2006 22:04:18 -0400
On 3/23/06, mmalcolm crawford <email@hidden> wrote:
>
> On Mar 23, 2006, at 12:10 PM, Bobby B wrote:
> > I'm building a CoreData application, and I'm having some trouble
> > accessing the properties of my entities. From what I've been reading,
> > it seems to access a CoreData entity and it's properties (as keys),
> > you do the following:
> >
> Could you please let me know what documentation you read that led you
> to believe the approach you describe below is anything like correct?
> I'm not sure how you would arrive at this conclusion from Apple's
> documentation suite. (Lest my tone be misinterpreted here, I'm
> asking seriously. I want to know so that if it's a problem with the
> official docs it can be remedied.)
Yikes :) Looks like I've really made some mistakes.
I was reading this post:
http://www.cocoabuilder.com/archive/message/cocoa/2006/3/23/159412
And judging from the code he posted, and the screenshot in his second
post, it looked like I was doing the same thing as him.
You said I wasn't clear in defining how my program's architecture is
laid out. "Girl" is the entity as defined in the .xcdatamodel (when
you start a new CoreData application, and you draw out your entities
there.) Most of the interface uses bindings accssing the data that
CoreData handels.
What I was trying to do in that snippet of code is to replace the
value for the property "image" which is a property of my entitiy
"Girl."
Since my entity "Girl" is an NSManagedObject, I figured the above was
semi-correct. It looks like I've been grossly mistaken?
Bobby B
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden