Could not connect the action to target of class
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