I am new to Cocoa programming and I am trying to create an application with similar functionality to the Cinch App in Mac App Store. My goal so far is to figure out if a window is being dragged. This is what I did so far and it works but before going further and coding what I described in the comments (it should work), I realized this could get very messy and I should try to figure out a better way of doing it... So, how else can this be done? Thanks!