• 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
Incompatible pointer type assigning to Warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Incompatible pointer type assigning to Warning
      • From: Clark Cox <email@hidden>
  • Prev by Date: Re: Xcode 7.3.1: Auto Layout drives me crazy
  • Next by Date: Re: Incompatible pointer type assigning to Warning
  • Previous by thread: Re: Cocoa-Apple Script Application to stay in foreground
  • Next by thread: Re: Incompatible pointer type assigning to Warning
  • Index(es):
    • Date
    • Thread