• 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: Snapping windows while moving
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Snapping windows while moving


  • Subject: Re: Snapping windows while moving
  • From: Steve Mills <email@hidden>
  • Date: Thu, 14 Mar 2013 13:36:57 -0500

On Mar 13, 2013, at 18:26:01, Seth Willits <email@hidden> wrote:

> On Mar 13, 2013, at 8:34 AM, Ken Thomases wrote:
>
>> The Window Server moves most windows entirely without involving the app (until the move is completed).
>
> Minor detail…  while the window is being moved the app has no idea it's happening, but after the movement stops for some brief time (the mouse button can *still be held down*) the window's frame is changed. That is, while the mouse button is held down, the window frame *does* update, but only after the mouse has stopped moving for some short amount of time. The frame change happens transparently though — no calls to any setFrame method is made (and no notifications happen etc).  So it's still useless, but it's interesting.
>
>> If you want to change how windows get moved, I think you have to take over the whole process.  You do [window setMovable:NO] to make the Window Server not move your windows itself.  Instead, you get the relevant mouse events and you write typical mouse drag code and change the window frame manually.  See the docs for -[NSWindow isMovable].
>
> I too think this the only option.

Thanks for the thoughtful and wise responses. Looks like I'll be writing code that Apple neglected to write for Cocoa, when it was readily available in Carbon.

--
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


References: 
 >Snapping windows while moving (From: Steve Mills <email@hidden>)
 >Re: Snapping windows while moving (From: Seth Willits <email@hidden>)
 >Re: Snapping windows while moving (From: Steve Mills <email@hidden>)
 >Re: Snapping windows while moving (From: Seth Willits <email@hidden>)

  • Prev by Date: 'Pseudo' Singleton in Objective C
  • Next by Date: Re: 'Pseudo' Singleton in Objective C
  • Previous by thread: Re: Snapping windows while moving
  • Next by thread: Re: Snapping windows while moving
  • Index(es):
    • Date
    • Thread