• 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
Strange XCode Warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange XCode Warning


  • Subject: Strange XCode Warning
  • From: Dave <email@hidden>
  • Date: Tue, 15 Sep 2015 16:36:08 +0100

Hi,

I get "Instance method 'conformsToProtocol:' found instead of class method 'conformsToProtocol:’” on the conformsToProtocol statement marked below.

If I remove the <LTWDetailViewProtocol> on the method definition, the warning goes away?

Any idea how to fix this so I don’t get the warning?

Thanks a lot
Dave

-(instancetype) initWithDetailViewClass:(Class<LTWDetailViewProtocol>) theDetailViewClass andDetailItemInfoDictionary:(NSDictionary*) theDetailItemInfoDictionary
{
if ([theDetailViewClass conformsToProtocol:@protocol(LTWDetailViewProtocol)] == NO)			//********************************
	return nil;

self = [self initWithDetailViewClass:theDetailViewClass];
if (self == nil)
	return self;

self.pDetailItemInfoDictionary = theDetailItemInfoDictionary;

return self;
}


 _______________________________________________
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


  • Follow-Ups:
    • Re: Strange XCode Warning
      • From: Jens Alfke <email@hidden>
  • Prev by Date: How to specify source dirs with lldb?
  • Next by Date: Re: Strange XCode Warning
  • Previous by thread: Re: How to specify source dirs with lldb?
  • Next by thread: Re: Strange XCode Warning
  • Index(es):
    • Date
    • Thread