• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”
      • From: Jens Alfke <email@hidden>
References: 
 >New error “Method override for the designated initializer of the superclass ‘-init’ not found” (From: Jens Alfke <email@hidden>)

  • Prev by Date: New error “Method override for the designated initializer of the superclass ‘-init’ not found”
  • Next by Date: Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”
  • Previous by thread: New error “Method override for the designated initializer of the superclass ‘-init’ not found”
  • Next by thread: Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”
  • Index(es):
    • Date
    • Thread