• 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: capturing a double-click on a control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: capturing a double-click on a control


  • Subject: Re: capturing a double-click on a control
  • From: Artemiy Pavlov <email@hidden>
  • Date: Sat, 17 Mar 2007 20:02:01 +0200


On 17 Mar 2007, at 12:48 PM, Uli Kusterer wrote:

You just override mouseDown and look at the event's modifier keys flags.

Uli, thanks very much, but could you possibly point to an example for how to do it assuming I am a very newbie Cocoa programmer?


My header file has:

IBOutlet NSSlider *	MySlider;
- (IBAction)iaMySliderDidSomething:(id)sender;

Then in the .m file I implement the event handler:

- (IBAction) iaMySliderDidSomething:(id)sender {

   float floatValue = [sender floatValue];

   /* do something */

}


Thanks and best wishes,

Artemiy.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: capturing a double-click on a control
      • From: "I. Savant" <email@hidden>
References: 
 >capturing a double-click on a control (From: Artemiy Pavlov <email@hidden>)
 >Re: capturing a double-click on a control (From: "I. Savant" <email@hidden>)
 >Re: capturing a double-click on a control (From: Artemiy Pavlov <email@hidden>)
 >Re: capturing a double-click on a control (From: Michael Watson <email@hidden>)
 >Re: capturing a double-click on a control (From: Artemiy Pavlov <email@hidden>)
 >Re: capturing a double-click on a control (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Event handling and tracking rect question
  • Next by Date: Re: capturing a double-click on a control
  • Previous by thread: Re: capturing a double-click on a control
  • Next by thread: Re: capturing a double-click on a control
  • Index(es):
    • Date
    • Thread