Re: Mysterious warning (initialization from distinct Objective-C type)
Re: Mysterious warning (initialization from distinct Objective-C type)
- Subject: Re: Mysterious warning (initialization from distinct Objective-C type)
- From: Shaun Wexler <email@hidden>
- Date: Wed, 21 Sep 2005 10:14:36 -0700
On Sep 20, 2005, at 10:35 PM, Mason Mark wrote:
I am chiming in here to keep Dan's thread alive, since there seems
to be no answer yet, and add a couple of data points.
FSColoredView *v = [self mainView]; // returns an id: -(id)
mainView;
The line of code above generates the warning. I am not building a
universal binary.
I started getting this warning after upgrading to GCC 4.0.1.
What happens when you cast it?
FSColoredView *v = (FSColoredView *)[self mainView];
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden