Creates, configures, and returns an instance of the class for the entity with a given name.
Original signature is '+ (id)insertNewObjectForEntityForName:(NSString *)entityName inManagedObjectContext:(NSManagedObjectContext *)context'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static Id InsertNewObjectForEntityForNameInManagedObjectContext( NSString entityName, NSManagedObjectContext context )
Public Shared Function InsertNewObjectForEntityForNameInManagedObjectContext ( _ entityName As NSString, _ context As NSManagedObjectContext _ ) As Id
public: static Id^ InsertNewObjectForEntityForNameInManagedObjectContext( NSString^ entityName, NSManagedObjectContext^ context )
Parameters
- entityName (NSString)
- The name of an entity.
- context (NSManagedObjectContext)
- The managed object context to use.
Return Value
A new, autoreleased, fully configured instance of the class for the entity named entityName. The instance has its entity description set and is inserted it into context.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)