• 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: setting NSSlider floatvalue from different thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting NSSlider floatvalue from different thread


  • Subject: Re: setting NSSlider floatvalue from different thread
  • From: Jack Nutting <email@hidden>
  • Date: Wed, 15 Feb 2006 13:24:16 +0100

On 2/15/06, Karim Morsy <email@hidden> wrote:
>
> This is the code for the callback functions that gets called
> repeatedly (about 50 times per second) on a seperate thread (which is
> not the main thread).
> (I am trying to animate a slider according to specific float values,
> and I want to the slider to keep moving even if another button is
> pressed, which usually blocks the main thread)
>
>         NSArray * arr= [NSArray
> arrayWithObject:NSEventTrackingRunLoopMode];


AFAIK, NSEventTrackingRunLoopMode is the default mode, so specifying just
that is probably the same as calling the other perform... method without the
modes array.  You could try specifying all publicly-declared run loop modes:

NSArray *arr - [NSArray arrayWithObjects:NSEventTrackingRunLoopMode,
NSModalPanelRunLoopMode, nil];

I don't know off-hand whether that will help, but it's worth a try.  There
are also some undeclared run loop modes in the appkit which may or may not
be useful in case the publicly-declared ones aren't any use.

--
// jack
// http://www.nuthole.com
 _______________________________________________
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

  • Follow-Ups:
    • Re: setting NSSlider floatvalue from different thread
      • From: Camillo Lugaresi <email@hidden>
References: 
 >Re: setting NSSlider floatvalue from different thread (From: Karim Morsy <email@hidden>)

  • Prev by Date: Re: setting NSSlider floatvalue from different thread
  • Next by Date: Problem getting notifications from standard error
  • Previous by thread: Re: setting NSSlider floatvalue from different thread
  • Next by thread: Re: setting NSSlider floatvalue from different thread
  • Index(es):
    • Date
    • Thread