Re: Cocoa development with X-Code
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