Re: displaying a calculated image
Re: displaying a calculated image
- Subject: Re: displaying a calculated image
- From: Cameron Hayne <email@hidden>
- Date: Mon, 27 May 2002 02:11:05 -0400
Hi Andreas
Adding the timer for NSEventTrackingRunLoopMode makes my program work
fine without the need to subclass NSSlider. Thanks for pointing this
out.
... Cameron
Andreas Mayer <email@hidden> wrote:
Am Sonntag den, 26. Mai 2002, um 14:55, schrieb Cameron Hayne:
One problem that I had to overcome was that NSSlider does not seem to
allow processing of timer events when the mouse is held down on the
slider. To fix this (which might be considered a bug in NSSlider ?), I
use a subclass of NSSlider which sends a stream of Periodic Events when
the mouse is down.
From the CircleView Tutorial:
// The next two lines make sure that animation will continue to
occur
// while modal panels are displayed and while event tracking is
taking
// place (for example, while a slider is being dragged).
[[NSRunLoop currentRunLoop] addTimer:timer
forMode:NSModalPanelRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer:timer
forMode:NSEventTrackingRunLoopMode];
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.