Re: Strange NSView/NSWindow behavior

2010-05-04 Thread Murat Konar
On May 4, 2010, at 11:32 AM, vincent habchi wrote: 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. But, if I am not mistaken, when the event is caught and handled, it should not propagate furthe

Re: Strange NSView/NSWindow behavior

2010-05-04 Thread vincent habchi
> 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. Thanks a lot, by the way! :) Vincent___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Strange NSView/NSWindow behavior

2010-05-04 Thread vincent habchi
Le 4 mai 2010 à 20:26, Greg Parker a écrit : > 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

Re: Strange NSView/NSWindow behavior

2010-05-04 Thread Greg Parker
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 dr

Strange NSView/NSWindow behavior

2010-05-04 Thread vincent habchi
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 ide