• 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: IB3 and custom controls: problem with actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB3 and custom controls: problem with actions


  • Subject: Re: IB3 and custom controls: problem with actions
  • From: "Vitaly Ovchinnikov" <email@hidden>
  • Date: Sun, 6 Jul 2008 02:28:12 +0400

Ops, sorry. I read "control" instead of "controller". Of course I have
enough IBAction's in my controller class. I can Ctrl+Drag from any
standard control (NSButton or something like this). But not from the
custom one.

More, if I subclass standard control (like NSImageView, for example) -
IB eats this and allows to Ctrl+Drag actions. But not for subclasses
of NSControl itself. I compared my controls declaration with NSButton
and others - no significant difference. It seems that is is a bug of
IB 3.0.

On Sun, Jul 6, 2008 at 12:47 AM, Chris Hanson <email@hidden> wrote:
> 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

References: 
 >IB3 and custom controls: problem with actions (From: "Vitaly Ovchinnikov" <email@hidden>)
 >Re: IB3 and custom controls: problem with actions (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: IB3 and custom controls: problem with actions
  • Next by Date: Re: Method Sees Populated Array As Empty
  • Previous by thread: Re: IB3 and custom controls: problem with actions
  • Next by thread: NSPredicateEditorRowTemplate
  • Index(es):
    • Date
    • Thread