Re: Strange NSView/NSWindow behavior
Re: Strange NSView/NSWindow behavior
- Subject: Re: Strange NSView/NSWindow behavior
- From: Greg Parker <email@hidden>
- Date: Tue, 4 May 2010 11:26:12 -0700
On May 4, 2010, at 11:18 AM, vincent habchi wrote:
> Hi again, again, and… (let's be short :))
>
> I have a NSView in a NSWindow. That NSView handles mouse events (mouseDown:, Dragged:, Up:). But, to my great astonishment, the event propagates through the underlying window, so that when I drag inside the view, the window also moves. How come? Any idea?
Keeping it short: look up -[NSView mouseDownCanMoveWindow]. Override it to return NO if you never want a click in the view to drag the window.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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