kSliderDelay = 0.0
> -(void)setValue:(NSObject*)value
> {
> self.value = value;
>
> [NSObject
> cancelPreviousPerformRequestsWithTarget:self
> selector:@selector(updateValue)
> object:nil];
>
> [self performSelector:@selector(updateValue)
> withObject:nil];
> afterDelay:kSliderDelay];
> }
>
> -(void)update
> {
> // slow update from self.value
> }
Hm - this does not seem to work and I cannot see why not.
The cancel and perform selector calls are being called but updateValue
is only performed when I release the slider handle.
I don't quite get why.
cheers,
Torsten
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]