• 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
Coredata Applications and accessing Managed Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Coredata Applications and accessing Managed Objects
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Determining if NSArray/NSDictionary is immutable
  • Next by Date: Re: NSCombobox subclass and binding ?
  • Previous by thread: Re: Determining if NSArray/NSDictionary is immutable
  • Next by thread: Re: Coredata Applications and accessing Managed Objects
  • Index(es):
    • Date
    • Thread