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

Re: NSSlider mouseUp ????


  • Subject: Re: NSSlider mouseUp ????
  • From: Conor Dearden <email@hidden>
  • Date: Sat, 04 Mar 2006 12:54:31 +0100

You could stop playing the sound when the action for the control gets sent.

Also another possibility is to set the action to be sent continuously and
play the sound there. You could play a different pitch depending on the
difference in values so that fast movement sounds different then slow
movement.

- (void)setContinuous:(BOOL)flag

But if you really want to track the mouse use the method:

trackMouse:inRect:ofView:untilMouseUp:

You might not be getting the mouse up event because the mouse has left the
control when the button is released. The above method will also let you know
when the mouse leaves the control.  Don't forget to call super on that
method after overriding it.

Regards,
Conor
http://www.bruji.com/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: NSDateFormatter subclass not created when nib loads
  • Next by Date: Re: NSSlider mouseUp ????
  • Previous by thread: Re: NSSlider mouseUp ????
  • Next by thread: KeyValuePair entity and maintaining unique keys
  • Index(es):
    • Date
    • Thread