Re: Continuous controls and undo
Re: Continuous controls and undo
- Subject: Re: Continuous controls and undo
- From: Tommy Nordgren <email@hidden>
- Date: Sat, 8 Jan 2005 18:32:11 +0100
Jan 8, 2005 kl. 3:31 PM skrev Dan Bernstein:
How does one implement undo for the action of a continuous control,
say a slider?
I want the entire dragging action to register as a single undo
operation, but a continuous control doesn't seem to afford a way to
know if it's just started tracking, is tracking, or has just finished
tracking.
-- Dan Bernstein
_______________________________________________
Derive a class:
-(void) mouseDown:(NSEvent*)event
{
//Store current setting in a instance variable, then
...
[super mouseUp:event];
}
-(void) mouseUp:(NSEvent *) event
{
[super mouseUp:event];
// .. then get current settings, and register a suitable object with
the undo manager
}
Hope this helps
Tommy Nordgren
_______________________________________________
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