• 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: Stop dragging my <NSWindow> around
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stop dragging my <NSWindow> around


  • Subject: Re: Stop dragging my <NSWindow> around
  • From: Henry McGilton <email@hidden>
  • Date: Thu, 3 Feb 2005 11:21:55 -0800


On Feb 3, 2005, at 11:10 AM, j o a r wrote:


On 2005-02-03, at 19.58, Edward Hillenbrand wrote:

And as far as I can tell there is no way to tell the window server that you want to handle window movement yourself. I hope I'm wrong about all this maybe someone else has the solution, but it looks like the only way to do it is with a fake title bar.

I don't think that you can do this in Cocoa, but I'm fairly sure that you can do it in Carbon apps.


IMO the ability to ALWAYS move windows is one of the great advantages of Cocoa over Carbon. I really hate it when an Carbon app is unresponsive and you can't get it's windows out of the way. I secretly hope that they will remove the ability for Carbon apps to "lock" windows like that all together... It would be even better if they also made it so that I could always _hide_ an application, regardless of if it is responsive or not.

I understand that you need to hook into window movement events to be able to get snap-to-edge functionality working, but I wish it was possible to provide that functionality without also having to "steal" the control over application windows from the user.

You can make your controller a delegate of the window, and then implement the windowWillMove and windowDidMove notification methods.

When the window is dragged via the title bar, you should receive a
single  windowWillMove  method, followed by an indeterminate number
of  windowDidMove  methods (but with a determinate lower limit of one).

I tried this in one application.  The main problem I saw was determining
when you got the last  windowDidMove  message.


Cheers, ........ Henry


===============================+============================ Henry McGilton, Boulevardier | Trilithon Software Objective-C/Java Composer | Seroia Research -------------------------------+---------------------------- mailto:email@hidden | http://www.trilithon.com | ===============================+============================

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Stop dragging my <NSWindow> around
      • From: Edward Hillenbrand <email@hidden>
References: 
 >Stop dragging my <NSWindow> around (From: Ken Tabb <email@hidden>)
 >Re: Stop dragging my <NSWindow> around (From: Edward Hillenbrand <email@hidden>)
 >Re: Stop dragging my <NSWindow> around (From: j o a r <email@hidden>)

  • Prev by Date: Detecting ctrl-click (context menu) in NSBrowser
  • Next by Date: Re: Stop dragging my <NSWindow> around
  • Previous by thread: Re: Stop dragging my <NSWindow> around
  • Next by thread: Re: Stop dragging my <NSWindow> around
  • Index(es):
    • Date
    • Thread