On Mar 12, 2013, at 1:11 PM, Steve Mills wrote: > What's the best way to go about snapping windows to screens and other windows > while dragging the window? I've tried catching it in windowDidMove (only when > the mouse is down), but that isn't called for every single movement of the > mouse. I haven't been able to find anything equivalent to the old > kEventWindowBoundsChanging with kWindowBoundsChangeUserDrag, which was > exactly what was needed to do this. It needs to be available in 10.7 on up.
Pretty sure you want to subclass and override constrainFrameRect:toScreen: but I can't recall off the top of my head whether this is called live for every movement. I believe it is. -- Seth Willits _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com