Re: Lack of IBAction in Some Classes
Re: Lack of IBAction in Some Classes
- Subject: Re: Lack of IBAction in Some Classes
- From: Gordon Apple <email@hidden>
- Date: Thu, 22 Aug 2013 13:25:27 -0500
- Thread-topic: Lack of IBAction in Some Classes
Sorry for the delay. Got waylaid by my own issues. I guess that¹s the
case. Without re-declaring the header, it just doesn¹t show up in IB.
On 8/12/13 4:05 PM, "Kyle Sluder" <email@hidden> wrote:
> On Mon, Aug 12, 2013, at 01:44 PM, Gordon Apple wrote:
>> > Is there some reason why some classes, such as NSTextView, don¹t declare
>> > IBAction in their actions?
>
> Possibly because they predate IBAction? IB used to just look for methods
> that took an id argument and returned void.
>
>> > I¹ve taken to re-declaring such in
>> > subclasses,
>> > which works, but results in compiler warnings about unimplemented
>> > methods.
>> > Without that, you can¹t connect, say, a menu, in IB. You can use a
>> > binding,
>> > but if you want the ³sender² parameter, you are SOL. Am I missing
>> > something?
>
> Does IB really not allow you to connect to such legacy methods?
>
> --Kyle Sluder
_______________________________________________
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