• 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 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CoreData question
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: KVO mysql
  • Next by Date: Re: CoreData question
  • Previous by thread: KVO mysql
  • Next by thread: Re: CoreData question
  • Index(es):
    • Date
    • Thread