• 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: NSSlider and doube-click event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSlider and doube-click event


  • Subject: Re: NSSlider and doube-click event
  • From: "Simon Raisin" <email@hidden>
  • Date: Thu, 12 Jul 2007 22:29:25 -0400

Thank you for the documentation pointer.  I've read everything I can get my
hands on wrt NSResponder, events, etc.

But unfortunately I still don't understand HOW or WHERE to put the code that
would handle the double-click for the NSSlider.

Say I create a new cocoa based xcode project.  I open up IB and drop a new
NSSlider onto the window.

Now I create an "AppController" class that has an IBOutlet that refers to
the slider and I hook them up.

I build and run the app then I double-click on the slider.  I'm still no
closer to understanding how to handle the mouse click events.

I apologize if this is a stupid question, but I'm honestly just missing
something.

Thanks,
CxT

On 7/10/07, Wagner Truppel <email@hidden> wrote:

NSSlider inherits from NSResponder, so it knows how to respond to mouse clicks. Perhaps it would help to read the documentation found here:

http://developer.apple.com/documentation/Cocoa/EventsOtherInput-
date.html

> Was this just a stupid question, or is this really something that
> people
> don't do?
>
> On 7/9/07, Simon Raisin <email@hidden> wrote:
>
>> I am trying to figure out how to get an NSSlider instance notify
>> one of my
>> model classes when it double-clicked.
>>
>> Do I have to subclass NSSlider to obtain this functionality?
>>
>> Thanks!
>> -CxT
_______________________________________________

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

_______________________________________________

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: NSSlider and doube-click event
      • From: Robert Martin <email@hidden>
References: 
 >Re: NSSlider and doube-click event (From: Wagner Truppel <email@hidden>)

  • Prev by Date: setAutohidesScrollers notification
  • Next by Date: Re: NSTask troubles
  • Previous by thread: Re: NSSlider and doube-click event
  • Next by thread: Re: NSSlider and doube-click event
  • Index(es):
    • Date
    • Thread