Re: warning: initialization from distinct Objective-C type
Re: warning: initialization from distinct Objective-C type
- Subject: Re: warning: initialization from distinct Objective-C type
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sun, 22 Aug 2010 00:04:26 +0200
Le 21 août 2010 à 23:52, email@hidden a écrit :
> How should I make the assignment to 'fm' below to get rid of this warning?
>
> warning: initialization from distinct Objective-C type
>
>
>
> /* drawWithFrame:inView */
> - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
>
> FramesMatrix* fm = controlView;
FramesMatrix *fm = (FramesMatrix *)controlView;
-- Jean-Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden