• 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: no control of NSSlider interval
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >no control of NSSlider interval (From: "Simon Strandgaard" <email@hidden>)

  • Prev by Date: Undo selection of object in table view (Core Data app)
  • Next by Date: Re: Initialisation and awakeFromNib being called multiple times
  • Previous by thread: no control of NSSlider interval
  • Next by thread: Async network oriented class & memory management
  • Index(es):
    • Date
    • Thread