• 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: addTarget: forControlEvents: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: addTarget: forControlEvents: ?


  • Subject: Re: addTarget: forControlEvents: ?
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 07 Apr 2015 15:11:23 -0500

On Tue, Apr 7, 2015, at 02:49 PM, Dave wrote:
> Hi All,
>
> Given the iOS/Cocoa-Touch code:
>
> [self addTarget:self action:@selector(buttonTouchUpInsideAction:)
> forControlEvents:UIControlEventTouchUpInside];
> [self addTarget:self action:@selector(buttonTouchDownAction:)
> forControlEvents:UIControlEventTouchDownInside];
>
> What is the Equivalent for Mac/Cocoa?

The Mac does not support multiple targets for a single control.

--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: 
 >addTarget: forControlEvents: ? (From: Dave <email@hidden>)

  • Prev by Date: Re: Where is my bicycle?
  • Next by Date: Re: Where is my bicycle?
  • Previous by thread: addTarget: forControlEvents: ?
  • Next by thread: Re: addTarget: forControlEvents: ?
  • Index(es):
    • Date
    • Thread