Sorry to bother, got it all fixed with: [[self window] discardEventsMatchingMask:NSLeftMouseDraggedMask beforeEvent:theEvent];
On Tue, May 5, 2009 at 6:09 AM, Henrietta Read <readhenrie...@gmail.com>wrote: > 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com