On Tue, Sep 15, 2015, at 12:23 PM, Jens Alfke wrote:
> 
> > On Sep 15, 2015, at 9:19 AM, Dave <d...@looktowindward.com> wrote:
> > 
> > Class<ProtocolX> was allowable and would cause the compiler to generate a 
> > warning if “MyClass” does not conform to “ProtocolX”, e.g.
> 
> I’ve never seen that used before … which doesn’t prove it isn’t real, but
> I’m suspicious. Have you tested whether it actually triggers such a
> warning?
> 
> > This fixes it:
> > 
> > if ([(Class)theDetailViewClass 
> > conformsToProtocol:@protocol(LTWDetailViewProtocol)] == NO)
> 
> Yeah, that would imply that the compiler sees “Class<ProtocolX>” as an
> instance type, not a class.

Class<ProtocolX> really is a Class (instance of metaclass). Check out
UIAppearance.h; that's how containment-based appearance works.

--Kyle Sluder

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to