Re: capturing a double-click on a control
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