• 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: "ghost" knobs on sliders?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "ghost" knobs on sliders?


  • Subject: Re: "ghost" knobs on sliders?
  • From: Jeff <email@hidden>
  • Date: Wed, 30 Mar 2005 11:57:47 -0500


On Mar 30, 2005, at 7:50 AM, Chris Stephens wrote:


When I programmatically request a dump of all the controls (the hardware device has a command to let me do this) the slider knobs fly obediently to their positions - but sometimes leave a "ghost" image of the knob in the centre position where they all were a moment before.


I've had that exact problem before.

I was writing a midi app and the issue was I was updating the UI from the midi thread, not the "main" thread.

UI updates need to be done in the main thread or you may get those ghosting effects.

There's a method in NSThread called performSelectorOnMainThread or something of that nature you can use to call a func on the main thread.

good luck

--
Jeff Trout <email@hidden>
http://www.jefftrout.com/
http://www.stuarthamm.net/

_______________________________________________
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: 
 >"ghost" knobs on sliders? (From: Chris Stephens <email@hidden>)

  • Prev by Date: Re: Nested sheets
  • Next by Date: Re: How to code a NSString literal with UTF8?
  • Previous by thread: Re: "ghost" knobs on sliders?
  • Next by thread: boundingRectForGlyphRange oddness - what on earth?
  • Index(es):
    • Date
    • Thread