Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”
Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”
- Subject: Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”
- From: Quincey Morris <email@hidden>
- Date: Tue, 09 Jun 2015 21:25:32 +0000
On Jun 9, 2015, at 13:40 , Jens Alfke <email@hidden> wrote:
- (instancetype) initWithString: (NSString*)str NS_DESIGNATED_INITIALIZER;
I think the issue is that declaring your initializer “designated” causes the compiler to enforce different inheritance semantics
- (instancetype) init { @throw [NSException exceptionWithName: NSInternalInconsistencyException reason: @"Flump cannot be initialized with -init" userInfo: nil]; }
But this didn’t fix it. Try:
- (instancetype) init NS_DESIGNATED_INITIALIZER { Unfortunately, search at developer.apple.com seems to be broken since they changed the site yesterday, so I can’t easily look for documentation about this.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden