Re: knowing if a titlebar click is actually a resize click
Re: knowing if a titlebar click is actually a resize click
- Subject: Re: knowing if a titlebar click is actually a resize click
- From: Ken Thomases <email@hidden>
- Date: Wed, 12 Jun 2013 16:21:06 -0500
On Jun 12, 2013, at 2:45 PM, Steve Mills wrote:
> On Jun 12, 2013, at 14:20:51, Seth Willits <email@hidden> 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@hidden)
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:
This email sent to email@hidden