• 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: knowing if a titlebar click is actually a resize click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: knowing if a titlebar click is actually a resize click


  • Subject: Re: knowing if a titlebar click is actually a resize click
  • From: Steve Mills <email@hidden>
  • Date: Wed, 12 Jun 2013 14:45:42 -0500

On Jun 12, 2013, at 14:20:51, Seth Willits <email@hidden> wrote:

> On Jun 12, 2013, at 10:48 AM, Steve Mills wrote:
>
>> How can I tell in my sendEvent override that a click is supposed to resize the window from the top and not drag the window?
>
> I assume you're having to display the resize cursor yourself since the window is marked as non-resizable? Naturally, being within that tracking rect would determine if it's a resize click.

No, just the opposite. I'm handling moving so we can snap to other windows, so our move code is running because the click is in the titlebar, even when Cocoa has already changed the cursor to a resize cursor. Are those tracking rects exposed in a public API? NSView has a trackingRects method, but the window doesn't.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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: knowing if a titlebar click is actually a resize click
      • From: Seth Willits <email@hidden>
    • Re: knowing if a titlebar click is actually a resize click
      • From: Ken Thomases <email@hidden>
References: 
 >knowing if a titlebar click is actually a resize click (From: Steve Mills <email@hidden>)
 >Re: knowing if a titlebar click is actually a resize click (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: knowing if a titlebar click is actually a resize click
  • Next by Date: Re: knowing if a titlebar click is actually a resize click
  • Previous by thread: Re: knowing if a titlebar click is actually a resize click
  • Next by thread: Re: knowing if a titlebar click is actually a resize click
  • Index(es):
    • Date
    • Thread