I would like to pass a copy of an NSManagedObject to a new viewController. How would I make a copy of the object?
Store *store = [self.stores objectAtIndex:indexPath.row]; //stores in an array of stores
StoreDetailViewController *v = [[StoreDetailViewController alloc] initWithText:@"" forStore:store];
[self.navigationController pushViewController:v animated:YES];
[v release];
You cannot send a
NSManagedObjectthecopymessage as it does not conform to theNSCopyingprotocol.