Re: Make Metronome in Cocoa?
Re: Make Metronome in Cocoa?
- Subject: Re: Make Metronome in Cocoa?
- From: j o a r <email@hidden>
- Date: Sun, 3 Sep 2006 01:10:00 +0200
Please don't cross-post!
On 3 sep 2006, at 00.56, Matt wrote:
I'm new to Cocoa and have been trying to write a metronome although
everything I tried ended up as a failure. Can anyone help me? I'm
currently
using NSTimer but its very inaccurate.
NSTimer fires in the main thread, it will not fire if the main thread
is busy. It's only going to be "very inaccurate" if you do "too much"
work in response to the event. The documentation for NSTimer doesn't
go into a lot of detail on this topic, but the documentation for
CFRunLoopTimer is pretty good:
<http://developer.apple.com/documentation/CoreFoundation/Reference/
CFRunLoopTimerRef/Reference/reference.html>
j o a r
_______________________________________________
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