• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: title bar hit test?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: title bar hit test?
      • From: Cosmin Apreutesei <email@hidden>
References: 
 >title bar hit test? (From: Cosmin Apreutesei <email@hidden>)
 >Re: title bar hit test? (From: Uli Kusterer <email@hidden>)
 >Re: title bar hit test? (From: Cosmin Apreutesei <email@hidden>)

  • Prev by Date: Re: title bar hit test?
  • Next by Date: Re: title bar hit test?
  • Previous by thread: Re: title bar hit test?
  • Next by thread: Re: title bar hit test?
  • Index(es):
    • Date
    • Thread