Ron -- thanks for the quick reply.

I do have the XMPPStream class declared in the .h file where the variable is declared.
And the .m does import the XMPPStream header file.      
After all, without those, I'd get outright errors :-)


On Mar 10, 2008, at 10:42 PM, Ron Fleckner wrote:


On 11/03/2008, at 7:19 PM, Stuart Malin wrote:

I have a line of code:

        xmppStream = [[XMPPStream alloc] initWithDelegate:self];

That when compiled, receives a warning:

warning: assignment from distinct Objective-C type

Not sure of the actual reason, but if you both forward declare the class in your header like:

@class XMPPStream;

and then import the XMPPStream.h in the implementation file of the class in which you use *xmppStream, like:

#import "XMPPStream.h"

then the warning will go away in my experience.

HTH,
Ron

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to