• 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: Cocoa development with X-Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa development with X-Code


  • Subject: Re: Cocoa development with X-Code
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 30 Apr 2005 19:53:35 -0700


On Apr 30, 2005, at 7:03 PM, Tom Birch wrote:

From what I understand from the Core Data docs, you don't need Xcode at all to use it. Xcode makes it a hell of a lot easier, but you can generate the managed object model in code.
http://developer.apple.com/documentation/Cocoa/Reference/ CoreData_ObjC/index.html


A complete example is given here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ CoreDataUtilityTutorial/03_CreateModel/chapter_4_section_1.html>


This clearly illustrates the overhead of writing even a simple model entirely in code...


Read the Class Description for NSManagedObjectModel, all you need to do is populate it with NSEntityDescription objects.

... which in turn must be populated by NSAttribute and NSRelationship objects, which may themselves require NSPredicate objects.

Also note that there's a known bug that you can't set a localisation dictionary for a model created entirely in code.

mmalc







_______________________________________________
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


References: 
 >Cocoa development with X-Code (From: "Erik M. Buck" <email@hidden>)
 >Re: Cocoa development with X-Code (From: Tom Birch <email@hidden>)

  • Prev by Date: Re: Cocoa development with X-Code
  • Next by Date: Re: What was the NDA hiding?
  • Previous by thread: Re: Cocoa development with X-Code
  • Next by thread: Re: Cocoa development with X-Code
  • Index(es):
    • Date
    • Thread