On Jun 12, 2013, at 2:45 PM, Steve Mills wrote:

> On Jun 12, 2013, at 14:20:51, Seth Willits <[email protected]> wrote:
> 
>> On Jun 12, 2013, at 10:48 AM, Steve Mills wrote:
>> 
>>> How can I tell in my sendEvent override that a click is supposed to resize 
>>> the window from the top and not drag the window?
>> 
>> I assume you're having to display the resize cursor yourself since the 
>> window is marked as non-resizable? Naturally, being within that tracking 
>> rect would determine if it's a resize click.
> 
> No, just the opposite. I'm handling moving so we can snap to other windows, 
> so our move code is running because the click is in the titlebar, even when 
> Cocoa has already changed the cursor to a resize cursor. Are those tracking 
> rects exposed in a public API? NSView has a trackingRects method, but the 
> window doesn't.

Does NSWindowWillStartLiveResizeNotification (or -[NSWindowDelegate 
windowWillStartLiveResize:]) happen in time for you to cancel your drag stuff?

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to