Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa development with X-Code




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.