Re: Strange XCode Warning
Re: Strange XCode Warning
- Subject: Re: Strange XCode Warning
- From: Dave <email@hidden>
- Date: Tue, 15 Sep 2015 17:19:28 +0100
Sorry, I mean:
Class<ProtocolX> was allowable and would cause the compiler to generate a warning if “MyClass” does not conform to “ProtocolX”, e.g.
e.g.
-(instancetype) initWithClass:(Class<LTWDetailViewProtocol>) theClass
{
}
-(void) someMethod
[
Class<ProtocolX> myProtocolClass;
Class myClass;
someClass* myObj;
myObj = [[someClass alloc] initWithClass:myProtocolClass]; //No Warning
myObj = [[someClass alloc] initWithClass:myClass]; //Produces a Warning
Cheers
Dave
_______________________________________________
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