• 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: Jens Alfke <email@hidden>
  • Date: Tue, 09 Jun 2015 14:50:23 -0700


On Jun 9, 2015, at 2:25 PM, Quincey Morris <email@hidden> wrote:

I think the issue is that declaring your initializer “designated” causes the compiler to enforce different inheritance semantics

Yes, and that’s the intent (and the purpose of that macro.) My question is about the new side effects of that.

Try:

- (instancetype) init NS_DESIGNATED_INITIALIZER {

That would be wrong, because -init _isn’t_ the designated initializer in my subclass.

—Jens
 _______________________________________________
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

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

  • Prev by Date: Re: 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: Re: 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