I have edge snapping too. Try: windowWillResize:toSize: Return Value A custom size to which the specified window will be resized.
It's called before every size change, including during live resizing. ----- Original Message ----- From: "Cosmin Apreutesei" <cosmin.apreute...@gmail.com> To: "Uli Kusterer" <witness.of.teacht...@gmx.net> Cc: "Cocoa Cocoa-Dev" <Cocoa-dev@lists.apple.com> Sent: Sunday, June 15, 2014 4:27:54 AM Subject: Re: title bar hit test? > Can I ask why you’re trying to do this? This sounds like something that’s so > unusual to do that I suspect you’re trying to use an overly complicated > approach to achieve something that is really simple in Cocoa. And what > exactly do you mean by “synchronous window moving event”? I want to have edge snapping on my windows. > You shouldn’t generally need to have to worry about window dragging. I worry about a lot of things that I generally should not care about :) > This makes dragging more responsive, and makes it work even while your > application is blocked, hung, etc. So I noticed. > And finally, if you’re trying to snap a window to a grid or resize it on a > grid or something like that, there are NSWindow delegate methods that give > you the rect AppKit would use for the new window size/position, where you can > return a modified version of the rect. Which methods? Are these called synchronously or asynchronously (i.e. too rarely to be useful)? Thanks. _______________________________________________ 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://urldefense.proofpoint.com/v1/url?u=https://lists.apple.com/mailman/options/cocoa-dev/lrucker%2540vmware.com&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=yJFJhaNnTZDfFSSz1U9TSNMmxGyib3KjZGuKfIhHLxA%3D%0A&m=gZ3q4zPflrx%2FI1Thi3LBO5VbYdwsRbYHMpDm%2BuCThIM%3D%0A&s=b9b8ecd8b7fa36e8bd8f437ac39386afb4d585baa9b04e6918da99c2961cfa1f This email sent to lruc...@vmware.com _______________________________________________ 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