MVC understanding and CoreData relationships between objects

Discussion in 'Mac Programming' started by i.yalovecky, Mar 5, 2010.

  1. i.yalovecky macrumors member

    Feb 24, 2010
    Hi. Need advice for how manage objects in my CoreData app. In ViewController i made static function what create context object for me. But i need to access this function from my MO classes (entities representations). How i can do it? May be with initialization, Controller create MO objects and initialize them somehow. Don't know.
  2. i.yalovecky thread starter macrumors member

    Feb 24, 2010
    // The designated initializer.
    - (id)initWithEntity:(NSEntityDescription *)entity insertIntoManagedObjectContext:(NSManagedObjectContext *)context; 

Share This Page