Re: Initialisation pattern
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