
hello,
what is the correct way of initilizing a class inheriting from NSManagedObject?
give me some code for it..

hello,
There are two way inheriting from NSManagedObject!!!
Car *car = [[Car alloc] initWithEntity:[NSEntityDescription entityForName:@"Car" inManagedObjectContext:self.managedObjectContext]
insertIntoManagedObjectContext:self.managedObjectContext];
or
Car *car = [NSEntityDescription insertEntityWithName@"Car" inManagedObjectContext
:self.managedObjectContext]
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.