masking events from Image Well
masking events from Image Well
- Subject: masking events from Image Well
- From: Henrietta Read <email@hidden>
- Date: Tue, 5 May 2009 06:09:32 -0700
Hi,
I'm using an Image Well as a button... such as:
- (void)mouseDown:(NSEvent *)theEvent
{
theEvent = [[self window]
nextEventMatchingMask: NSLeftMouseUpMask];
switch([theEvent type])
{
case NSLeftMouseUp:
DoVariousImportantThingsHere();
[view setNeedsDisplay:YES];
break;
default: break;
}
return;
}
The only snag is if the mouse moves even a tiny bit,
the application window jumps suddenly when you
mouse up.
Should I be catching NSLeftMouseDraggedMask
or some such thing?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden