Re: displaying a calculated image
Re: displaying a calculated image
- Subject: Re: displaying a calculated image
- From: Andreas Mayer <email@hidden>
- Date: Sun, 26 May 2002 15:44:54 +0200
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];
Hope this helps.
bye. Andreas.
_______________________________________________
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.