• 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: NSTimer and trackpad and mouse clicks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer and trackpad and mouse clicks


  • Subject: Re: NSTimer and trackpad and mouse clicks
  • From: Mark Pauley <email@hidden>
  • Date: Mon, 7 Nov 2011 15:52:22 -0800

You could make your own subclass and handle mouseDown...

What do you mean by 'it all stops'?  If your sequencer stops when the mouse button is down, something is really wrong.  The main thread ought not lock up under those circumstances.

On Nov 7, 2011, at 3:25 PM, Tom Jeffries wrote:

> I've got my CoreMIDI sequencer working fine under most circumstances.  I use NSTimer to get a rough timing, then use properly computed times that I send to MIDIPacketListAdd to get the accurate timing.  NSTimer is running a bit in advance of the correct time so that even if it's late the data gets to the right place in time.
>
> However, if I start the sequence playing, then use either the trackpad or a mouse to go to a button on the screen, and hold the trackpad or mouse button down, it all stops.  I put a breakpoint on the IBAction function that responds to the mouse/trackpad click, and it is not called until the mouse is released or the finger comes off the trackpad.  I've seen other programs handle this correctly, so there has to be a better way.
>
> What am I doing wrong?
>
> Thanks, Tom Jeffries
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTimer and trackpad and mouse clicks
      • From: Tom Jeffries <email@hidden>
References: 
 >NSTimer and trackpad and mouse clicks (From: Tom Jeffries <email@hidden>)

  • Prev by Date: NSTimer and trackpad and mouse clicks
  • Next by Date: Re: NSTimer and trackpad and mouse clicks
  • Previous by thread: NSTimer and trackpad and mouse clicks
  • Next by thread: Re: NSTimer and trackpad and mouse clicks
  • Index(es):
    • Date
    • Thread