Re: title bar hit test?

2014-06-16 Thread Uli Kusterer
On 15 Jun 2014, at 13:27, Cosmin Apreutesei wrote: > I want to have edge snapping on my windows. Just for moving, or also for resizing? If only for moving, you don't need to do anything special to detect resizing. The OS will catch all resize clicks and not send them to your views, so just impl

Re: title bar hit test?

2014-06-15 Thread Kyle Sluder
On Sun, Jun 15, 2014, at 02:17 PM, Lee Ann Rucker wrote: > Why do you want to change the position? It's not something Mac windows > normally do so users will be confused, and you've also got OSX itself > with its own ideas of where windows should go, especially when it adds > something like Maveric

Re: title bar hit test?

2014-06-15 Thread Lee Ann Rucker
Kusterer" , "Cocoa Cocoa-Dev" Sent: Sunday, June 15, 2014 1:54:08 PM Subject: Re: 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 c

Re: title bar hit test?

2014-06-15 Thread Cosmin Apreutesei
> 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. Thanks, that's good for resizing. There's still a problem with the moving. _

Re: title bar hit test?

2014-06-15 Thread Lee Ann Rucker
r" Cc: "Cocoa Cocoa-Dev" 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 s

Re: title bar hit test?

2014-06-15 Thread Cosmin Apreutesei
> 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 t

Re: title bar hit test?

2014-06-14 Thread Uli Kusterer
On 15 Jun 2014, at 00:46, Cosmin Apreutesei wrote: > How can I hit-test the title bar rectangle without the resizing > corners and edges? There’s no official API to do this that I’m aware of. > (I need this so I can implement synchronous window moving events). Can I ask why you’re trying to d

title bar hit test?

2014-06-14 Thread Cosmin Apreutesei
Hi, How can I hit-test the title bar rectangle without the resizing corners and edges? (I need this so I can implement synchronous window moving events). Thanks. PS: Empirically, the edges are 3px wide on OSX 10.9 and the corners are 4px, but I'd rather not hardcode these. _