Re: title bar hit test?
Re: title bar hit test?
- Subject: Re: title bar hit test?
- From: Lee Ann Rucker <email@hidden>
- Date: Sun, 15 Jun 2014 11:47:52 -0700 (PDT)
- Thread-topic: title bar hit test?
I have edge snapping too. Try:
windowWillResize:toSize:
Return Value
A custom size to which the specified window will be resized.
It's called before every size change, including during live resizing.
----- Original Message -----
From: "Cosmin Apreutesei" <email@hidden>
To: "Uli Kusterer" <email@hidden>
Cc: "Cocoa Cocoa-Dev" <email@hidden>
Sent: Sunday, June 15, 2014 4:27:54 AM
Subject: Re: title bar hit test?
> 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
_______________________________________________
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