Re: IB3 and custom controls: problem with actions
Re: IB3 and custom controls: problem with actions
- Subject: Re: IB3 and custom controls: problem with actions
- From: Chris Hanson <email@hidden>
- Date: Sat, 05 Jul 2008 13:47:44 -0700
On Jul 3, 2008, at 11:19 PM, Vitaly Ovchinnikov wrote:
After upgrade to XCode 3.0 I found out that now it is impossible. Old
links are still alive (marked with yellow triangles), but I can't
create a new one. I don't see "Sent action" group by right-clicking my
controls. If I perform Ctrl+Drag from my control to the controller -
it doesn't highlited. But if I do the same for NSButton - all works
fine.
That means Interface Builder doesn't know your controller implements
those actions.
The actions a control can send are not part of the control, but are
part of whatever you are sending an action to. Thus your controller
needs to have those actions declared in a header file in your project
(or in a framework referenced by your project) in order for Interface
Builder to recognize them.
What does the declaration of your controller look like?
-- Chris
_______________________________________________
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