In my NSView I have the following method.
@interface MyView:NSView
...
@end
@implementation MyView
- (void) rightMouseDown: (NSEvent *) aEvent
{
NSEvent *event;
do {
event = [NSApp nextEventMatchingMask: NSRightMouseDraggedMask
| NSRightMouseUpMask
untilDate:[NSDate distantFuture]
inMode:NSEventTrackingRunLoopMode
dequeue:YES];
NSLog (@"Mouse dragged\n");
}
while ([event type] != NSRightMouseUp);
}
@end
I have 3 buttons mouse. When I dragging with right mouse button, only
one message (Mouse dragged) is printed.
When I dragging with middle mouse button, I got a lot of messages. (This
is a right function, but with middle mouse button).
In Openstep for Mach 4.2 this example works fine (with right mouse
button).
I test this example on RedHat 6.2, Solaris 2.8 with gstep-core-000709
(000730).
Do I something wrong ?
Thank you.