If you're not familiar with Cinch, this is an app on the Mac App Store that lets you resize ANY window to half / full screen size if you drag the window to the edge of the screen. Just like functionality in Windows 7.
Now my question is: how is this done? I looked through all cocoa apis, looking for notification / delegate methods for whenever the window is dragged (ALL windows, not just windows belonging to the application from which the code is running), but cannot find it. Looked in the Core Graphics API ... Quartz Display Services .... but cannot find it.
Any help would be greatly appreciated as I was looking for the last week .... Thanks!
Edit: resizing the window is easy, as it can be done using applescript bridge ..
source
share