Re: Message from view to viewController
Re: Message from view to viewController
- Subject: Re: Message from view to viewController
- From: Jason Foreman <email@hidden>
- Date: Fri, 29 May 2009 11:31:42 -0500
On Fri, May 29, 2009 at 11:18 AM, Pierre Berloquin <email@hidden> wrote:
> Yes, I did import too many times, but that was in a desperate attempt to
> import enough!I corrected that and now I have my original error :
> MyAppViewController may not respond to +manageMyViews
> which blocks the program
>
You've defined manageMyViews as an instance method:
- (void)manageMyViews:(id)sender {
but you're trying to call it as a class method:
[MyAppViewController manageMyViews]
Notice in the warning you get "MyAppViewController may not respond to
+manageMyViews". The '+' there means it is trying to call that as a
class method. You need to create an instance of MyAppViewController
somewhere, and call that method on the instance, or redefine the
method to be a class method.
You may also not have declared that MyAppViewController responds to
manageMyViews in the header file.
Jason
_______________________________________________
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