Since I became accustomed to the behavior of SndView in 5.4.4 with
respect to click-and-dragginginside of a selection (the big
difference being that doing so resets the selection to begin at the
click point in 5.4.4 whereas in 5.5.2 it drags an image the whole
selection) - I was able to override it by putting my own mouseDown
inside my child class which inherits from SndView:
- (void) mouseDown: (NSEvent *) theEvent
{
NSPoint mouseDownLocation;
mouseDownLocation = [super convertPoint: [theEvent
locationInWindow] fromView: nil];
[super setSelection: mouseDownLocation.x size:0];
[super mouseDown:theEvent];
}
Is there a more elegant way to do this?
jr
On
|