Incompatible pointer type assigning to Warning
Incompatible pointer type assigning to Warning
- Subject: Incompatible pointer type assigning to Warning
- From: Dave <email@hidden>
- Date: Wed, 25 May 2016 14:33:22 +0100
Hi,
I’m getting a warning on the following:
#import “LTWClassX.h"
LTWGadgetX* myGadgetX;
Class myClass;
myClass = NSClassFromString(theClassName);
if (myClass == nil)
return nil;
myGadgetX = [myClass newGadgetInfo]; //*****Warning - incompatible pointer type assigning to LTWGadgetX from LTWGadgetZ
newGadgetInfo is define as so:
+(LTWGadgetX*) newGadgetInfo;
In LTWGadgetX.h and LTWGadgetX.m
This code used to use LTWGadgetZ and didn’t produce the warning, now I’ve changed it, it still remembers the LTWGadgetZ definition, which still exists but isn’t included.
In LTWGadgetZ.h and LTWGadgetZ.m
+(LTWGadgetZ*) newGadgetInfo;
I’ve tried cleaning the project but it still moans, how do I fix this?
Thanks a lot
All the Best
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