Re: Lack of IBAction in Some Classes
Re: Lack of IBAction in Some Classes
- Subject: Re: Lack of IBAction in Some Classes
- From: Kyle Sluder <email@hidden>
- Date: Mon, 12 Aug 2013 14:05:39 -0700
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