• 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
Could not connect the action to target of class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Could not connect the action to target of class


  • Subject: Could not connect the action to target of class
  • From: Hamish Allan <email@hidden>
  • Date: Fri, 11 Mar 2005 01:14:17 +0000

Hi,

I'm writing a document-based application, partly by cutting and pasting from a previous app I've written which works. When I try to open a document I get several messages of the form:

Could not connect the action someAction1InMyController: to target of class MyDocument
Could not connect the action someAction2InMyController: to target of class MyDocument


I've read MyController.h into the NIB, I've set the custom class of File's Owner to MyController, and when I've used Interface Builder to connect actions (e.g., by ctrl-dragging a button to the File's Owner icon) under 'Target/Action' it lists 'Actions in MyController' as being 'someAction1InMyController:', 'someAction2InMyController:' etc.

Why is Cocoa at runtime trying to connect those actions to MyDocument rather than MyController?

Thanks,
Hamish

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Could not connect the action to target of class
      • From: James McConnell <email@hidden>
    • Re: Could not connect the action to target of class
      • From: b a r t o n <email@hidden>
  • Prev by Date: Re: NSGLImage doesnt open large images
  • Next by Date: Re: Could not connect the action to target of class
  • Previous by thread: NSPopUpButtons and removing items
  • Next by thread: Re: Could not connect the action to target of class
  • Index(es):
    • Date
    • Thread