cocoa: resizing events with margin/corner information