• 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: 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


References: 
 >Re: Lack of IBAction in Some Classes (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Fastest way to replace characters in string
  • Next by Date: Re: Issues with NSTextView Attachments
  • Previous by thread: Re: Lack of IBAction in Some Classes
  • Next by thread: Dismissing Open dlog before doc actually opens
  • Index(es):
    • Date
    • Thread