title: Creating instance for NSManagedObject Class using Restkit
body: <p>how can i create an instance for NSmanagedObject Class which i am created using core data model. I have another class which is the subclass of NSObject. I want to create an object for NSManageObject Class. how can i do that. Is it like the normal way that we create the instance for NSobject class like</p>
  
  <p>ClassB.m //ClassB is NSObject Class</p>
  
  <pre><code>ClassA *obj = [[ClassA alloc]init]; //ClassA is NSmanagedObject Class
  </code></pre>
  
  <p>or is there any way to do that???</p>
  
  <p>i am not using this code(<a href="http://developer.apple.com/library/mac/#documentation/cocoa/Conceptual/CoreData/Articles/cdCreateMOs.html#//apple_ref/doc/uid/TP40001654-CJBDBHCB" rel="nofollow">Apple Docs</a>) for creating instance</p>
  
  <pre><code>NSManagedObject *newEmployee = [[NSManagedObject alloc]
  
              initWithEntity:employeeEntity
  
              insertIntoManagedObjectContext:context];
  </code></pre>
  
  <p>i would like to know, is there any way to create an object similar to the above code using restkit</p>
  
  <p>Note: i am using Restkit for creating object instance and mapping.</p>
  
  <p>Thanks</p>