CoreData question
CoreData question
- Subject: CoreData question
- From: Jesus De Meyer <email@hidden>
- Date: Sun, 25 Sep 2005 12:11:47 +0200
Hi,
I'm very new at CoreData. I'm trying to write some sort of database
application. I have setup the data model. Suppose for example that I
have an object called Movie and then another one called Genre. When
the application is started, I would like to have some predefined
Genres already, instead of having the user come up with genres.
How would I do this? Do I need to create a class for the Genre and
then setup an ArrayController in IB that points to this class and
then have a TableView or Popupmenu get the data from this array
controller?
When making a class from an object in the data model, do I need to
use the following initializer?
- (id)initWithEntity:(NSEntityDescription*)entity
insertIntoManagedObjectContext:(NSManagedObjectContext*)context {
if (self = [super init]) {
//do some stuff
}
return self;
}
Regards,
Jesus
_______________________________________________
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