• 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
Snapping Window Locations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Snapping Window Locations


  • Subject: Snapping Window Locations
  • From: Charles Jolley <email@hidden>
  • Date: Mon, 17 Jun 2002 19:09:02 -0500

Hi everyone:

I am trying to create some floating palettes using NSPanel's that should snap to each other and to the edge of the screen, etc. The problem is there does not seem to be anyway in NSWindow/NSPanel to intercept the move events as the window is being moved. I tried subclassing the various setFrame: methods but none of them appear to be called when the window is being moved around. I have also tried using the mouseDragged: method, but I can't figure out how to accurately calculate the new window position. (NSWindow does not receive a mouseDown: or mouseUp: message when the window is moved.)

Has anyone figured out how to do this? I know this question has been posed on the list before, but I haven't found any posted solutions.

Thanks for anyone who can point me in the right direction!

Cheers,
-Charles
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Snapping Window Locations
      • From: David Remahl <email@hidden>
  • Prev by Date: Drag and drop to an application icon
  • Next by Date: Question regarding drawing NSImages
  • Previous by thread: Re: Drag and drop to an application icon
  • Next by thread: Re: Snapping Window Locations
  • Index(es):
    • Date
    • Thread