Re: Warning in error
Re: Warning in error
- Subject: Re: Warning in error
- From: Bill Bumgarner <email@hidden>
- Date: Tue, 22 Dec 2009 10:47:08 -0800
On Dec 22, 2009, at 10:24 AM, Charlie Dickman wrote: [[self view] setController: self];
This last line gets flagged with "UIView may not respond to setController. Even if I explicitly declare "setController" in the MyView.h file I still get the erroneous warning and, yes, I have #import'ed the .h file.
-view is declared as returning (UIView*), not (MyView *). Fix the method declaration or, if it is a 'kit method, cast the return of -view.
Though, in general, if you are typecasting the return value of a 'kit method, it is often because your code is incorrect. Not always, but often.
b.bum
|
_______________________________________________
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