• 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: Uli Kusterer <email@hidden>
  • Date: Mon, 16 Jun 2014 20:37:03 +0200

On 15 Jun 2014, at 13:27, Cosmin Apreutesei <email@hidden> 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 implement a loop for dragging the window (nextEventMatchingMask: NSLeftMouseDraggedMask | NSLeftMouseUpMask) in a mouseDown: handler.

There might be a better callback for doing this that'd let you avoid having to roll your own window-move loop, I'm not sure anymore.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de


_______________________________________________

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


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: NSScrollView skips rendering pages
  • Next by Date: initWithCoder: calling init in custom class
  • Previous by thread: Re: title bar hit test?
  • Next by thread: CGDisplayIOServicePort deprecated in 10.9... IOServicePortFromCGDisplayID?
  • Index(es):
    • Date
    • Thread