• 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: Lack of IBAction in Some Classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Lack of IBAction in Some Classes
      • From: Gordon Apple <email@hidden>
References: 
 >Lack of IBAction in Some Classes (From: Gordon Apple <email@hidden>)

  • Prev by Date: Lack of IBAction in Some Classes
  • Next by Date: Dismissing Open dlog before doc actually opens
  • Previous by thread: Lack of IBAction in Some Classes
  • Next by thread: Re: Lack of IBAction in Some Classes
  • Index(es):
    • Date
    • Thread