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

Re: Snapping Window Locations


  • Subject: Re: Snapping Window Locations
  • From: David Remahl <email@hidden>
  • Date: Tue, 18 Jun 2002 03:29:28 +0200

Look how Fire implements it! It's on sourceforge.

/ David

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

References: 
 >Snapping Window Locations (From: Charles Jolley <email@hidden>)

  • Prev by Date: NSWindowController confusion
  • Next by Date: Problem with GDB
  • Previous by thread: Snapping Window Locations
  • Next by thread: Re: Snapping Window Locations
  • Index(es):
    • Date
    • Thread