• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Message from view to viewController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Message from view to viewController (From: Pierre Berloquin <email@hidden>)
 >Re: Message from view to viewController (From: Nick Zitzmann <email@hidden>)
 >Re: Message from view to viewController (From: Pierre Berloquin <email@hidden>)

  • Prev by Date: Re: Message from view to viewController
  • Next by Date: Re: Message from view to viewController
  • Previous by thread: Re: Message from view to viewController
  • Next by thread: Table column resizing overlaps the text with other column contents
  • Index(es):
    • Date
    • Thread