Re: Custom NSManagedObject Class Initializer
Re: Custom NSManagedObject Class Initializer
- Subject: Re: Custom NSManagedObject Class Initializer
- From: mmalc Crawford <email@hidden>
- Date: Sat, 14 Mar 2009 20:48:46 -0700
On Mar 14, 2009, at 8:02 PM, Richard Somers wrote:
I have a custom NSManagedObject class MyEntity. It works just fine.
However when I add an initializer and override the superclass's
designated initializer an error occurs.
[...]
{
[super initWithEntity:entity
insertIntoManagedObjectContext:context];
return self;
}
Why does the superclass initializer work but my override does not?
<http://developer.apple.com/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSManagedObject_Class/Reference/NSManagedObject.html#//apple_ref/occ/instm/NSManagedObject/initWithEntity:insertIntoManagedObjectContext:
>
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden