How does the Cinch app do it?

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 ..

+3
source share
3 answers

Are you a developer for i-Snap or some other clown for the Mac App Store Cinch?

I’m a Cinch developer, and although I try to maintain an “abundance mentality” that basically says “There's enough for everyone,” I was frustrated by the Mac App Store, which lowers the barrier to entry into this market, which has generated a number of semi-protected competitors.

I would be delighted to see some real innovations in the work that I did, and not just clones who want to make money quickly.

Anyway, you want to look at the Accessibility API. This is an API C carbon. This is probably your best link: http://developer.apple.com/library/mac/#samplecode/UIElementInspector/Introduction/Intro.html%23//apple_ref/doc/uid/DTS10000728

+7

Cinch, , cocoa . ( . ) , , . , , , , .

, , . !

+1

. , Apple script . , , .

0

All Articles