• 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: Initialisation pattern
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initialisation pattern


  • Subject: Re: Initialisation pattern
  • From: Seth Willits <email@hidden>
  • Date: Thu, 13 Aug 2015 16:29:17 -0700

> On Aug 13, 2015, at 1:32 PM, André Francisco <email@hidden> wrote:
>
> I only got Seth's email on the digest, not really sure why. Anyway, I copy pasted his response below.@Seth, thank for your answer. That's exactly what I've been doing all along, I didn't mention it because that's precisely what I'm trying to change. The problem is that it's not fine, I just tested it:@interface Parent- (instancetype)init NS_UNAVAILABLE;@end@interface Child- (instancetype)init NS_DESIGNATED_INITIALIZER;@endThis results in "init is unavailable" being issued by the compiler when instantiating Child. I'm using xcode 6.3.2, does your version differ?


I'm using Xcode 7 (beta 5) which has a newer version of clang in it than you have, so it appears this has changed.


--
Seth Willits
_______________________________________________

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


References: 
 >Initialisation pattern (From: André Francisco <email@hidden>)
 >Re: Initialisation pattern (From: Jens Alfke <email@hidden>)
 >RE: Initialisation pattern (From: André Francisco <email@hidden>)
 >RE: Initialisation pattern (From: André Francisco <email@hidden>)

  • Prev by Date: Swift differences between projects?
  • Next by Date: Re: Xcode 7b5 Swift Strings
  • Previous by thread: RE: Initialisation pattern
  • Next by thread: Re: Initialisation pattern
  • Index(es):
    • Date
    • Thread