Creating Objective-C Accessor Methods for a Managed Object
Quickly create prototypes for custom accessor methods for your managed object class using the Core Data model editor.
In the project navigator, select the managed object model file that contains the entity for which you want to generate accessor methods.
In the Core Data model editor, in the detail area, select the attributes or relationships for which you want to generate accessor methods.
Choose Edit > Copy.
In the project navigator, select the interface or implementation file into which you want to paste the code.
Position the cursor in the source editor where you want to insert the accessor methods.
Choose Edit > Paste <ItemType>.
Xcode generates the appropriate declaration or implementation code dependent on the properties you copy and the source file you select.
The Paste <ItemType> menu item reflect the context, so that <ItemType> is one of the following: