Coredata Applications and accessing Managed Objects
Coredata Applications and accessing Managed Objects
- Subject: Coredata Applications and accessing Managed Objects
- From: James Andrews <email@hidden>
- Date: Fri, 8 Jul 2005 23:37:32 -0400
I have my Coredata Application. I have created a data model for it,
and in that data model I have an entity called "Grouping" defined below.
Grouping
Attr: groupingName string
deletable bool
Rel: albums
parent
children
relationship albums is a to-many relationship to an Album entity, and
parent is a too many relationship to the children relationship which
is a to-one relationship to parent. (yeah kind of confusing but that
is what was recommended to me).
Let's say I have a text field that I want to use to insert a new
group. I assume that since I defined Grouping in the datamodel that
it is an NSManagedObject. Problem is I don't know how to access this
object in code. From what I am reading I am guessing I have to pass
it an object with groupname and deletable datatypes inside, but I am
not too sure if that is the case.
Any help greatly apprectiated.
Thanks
James
_______________________________________________
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