• 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: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 10 Jun 2015 23:45:24 +0200

‘assert’ is a macro that may be disabled by compiler flag and cause compilation issue. You should just use abort() instead.

> Le 10 juin 2015 à 16:50, Sean McBride <email@hidden> a écrit :
>
> On Wed, 10 Jun 2015 02:16:04 -0500, Kyle Sluder said:
>
>> You should be able to use the NS_UNAVAILABLE macro in your @interface to
>> "delete" -init from your subclass, and thus suppress the warning.
>
> Ah, brilliant.  Works for me, I just put in my .m:
>
> - (instancetype)init NS_UNAVAILABLE
> {
> 	assert(0);
> }
>
> No changes to interface or .h.  Nice.
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 email@hidden
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
>
> _______________________________________________
> 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


 _______________________________________________
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: Kyle Sluder <email@hidden>)
 >Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found” (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Is the f***ing NDA back, or why is no one talking about new stuff?
  • Next by Date: Re: Is the f***ing NDA back, or why is no one talking about new stuff?
  • 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