Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You want to create a new managed object and insert it into the managed object context.
Follow the instructions in Section 12.2 and Section 12.3. Now you can use the insertNewObjectForEntityForName:inManagedObjectContext: class method of NSEntityDescription to create a new object of a type specified by the first parameter of this method. Once the new entity (the managed object) is created, you can modify it by changing its properties. After you are done, save your managed object context using the save: instance method of the managed object context.