Re: no control of NSSlider interval
Re: no control of NSSlider interval
- Subject: Re: no control of NSSlider interval
- From: "Simon Strandgaard" <email@hidden>
- Date: Wed, 27 Sep 2006 17:24:48 +0200
On 9/27/06, Simon Strandgaard <email@hidden> wrote:
How does one shorten the interval of NSSlider?
The interval on my computer is 0.025 seconds, so allows in theory
for max 40 events per second.
[snip]
Nevermind about my question.
I made a tiny example that measured the number of events per second, to be
in the range 58..64. I was assuming that getPeriodicDelay:inteval: told me the
truth, however there is many more events being fired (better than the truth).
-(IBAction)slider_changed:(id)sender {
++_counter;
if(read_second() > _time) {
NSLog(@"notify per second=%i\n", _counter);
_time += 1.0f;
_counter = 0;
}
}
I will keep looking for my missing events. See you later.
--
Simon Strandgaard
_______________________________________________
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