Re: Warning in error
Re: Warning in error
- Subject: Re: Warning in error
- From: Douglas Norton <email@hidden>
- Date: Tue, 22 Dec 2009 18:37:19 +0000
On Dec 22, 2009, at 18:24 , Charlie Dickman wrote:
> In MyView.h I have the following code...
>
> @interface MyView : UIView {
> .
> .
> .
> id controller;
> }
>
> @property (nonatomic, assign) id controller;
>
> In MyView.m I have...
>
> @implementation MyView
> .
> .
> .
> @synthesize controller;
>
> And when I try to set it's value in MyViewController thusly...
>
> [[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.
>
> Charlie Dickman
> email@hidden
Is 'view' declared as being an object of the class MyView in MyViewController?
Douglas
P.S. This is not an Xcode issue, this question would be better placed on the Cocoa forum, or on the iPhone discussion board. _______________________________________________
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