Re: title bar hit test?
Re: title bar hit test?
- Subject: Re: title bar hit test?
- From: Cosmin Apreutesei <email@hidden>
- Date: Sun, 15 Jun 2014 14:27:54 +0300
> Can I ask why you’re trying to do this? This sounds like something that’s so unusual to do that I suspect you’re trying to use an overly complicated approach to achieve something that is really simple in Cocoa. And what exactly do you mean by “synchronous window moving event”?
I want to have edge snapping on my windows.
> You shouldn’t generally need to have to worry about window dragging.
I worry about a lot of things that I generally should not care about :)
> This makes dragging more responsive, and makes it work even while your application is blocked, hung, etc.
So I noticed.
> And finally, if you’re trying to snap a window to a grid or resize it on a grid or something like that, there are NSWindow delegate methods that give you the rect AppKit would use for the new window size/position, where you can return a modified version of the rect.
Which methods? Are these called synchronously or asynchronously (i.e.
too rarely to be useful)?
Thanks.
_______________________________________________
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