Edit AllPages

See also BorderlessWindow

I’ve got a strange problem with a NSWindow subclass. I’m creating an odd-shaped window with a NSButton in it. You can click and drag successfully almost anywhere in the window. But, whenever I click and drag close to the edge of a button in the window, the window jumps.

Here’s the relevant portion of my code. Based on the transparent window code from the R**oundedFloatingPanel example on



The solution is remove the code above, and use this instead:

[self setMovableByWindowBackground:YES];

see also related discussion in NSTabViewWindowDraggingProblem