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

Re: Preventing Window Dragging


  • Subject: Re: Preventing Window Dragging
  • From: Finlay Dobbie <email@hidden>
  • Date: Sun, 13 Jan 2002 19:33:26 +0000

On Sunday, January 13, 2002, at 07:24 pm, Darrell Walisser wrote:

Is there any way in Cocoa to make a window undraggable? Is there any way to temporarily lock the window so that it can't be dragged?

Not AFAIK. See below.

What about covering the window? Is there any way to temporarily lock a window so that no other window can cover it?

Sounds pretty evil... The best you can do is make it sit above all other windows by using -[NSWindow setLevel:]

I think the first is possible because when a Carbon application hangs you generally can't drag its window around.

This is a bit unrelated. In Carbon (at least in apps that don't implement the Carbon Event Model, unsure about the rest), the application itself handles the drag events, whereas in Cocoa dragging is initiated by the windowserver. At least, I'm pretty sure that's how it works.

-- Finlay


References: 
 >Preventing Window Dragging (From: Darrell Walisser <email@hidden>)

  • Prev by Date: Problems with setTitle
  • Next by Date: Re: Problems with setTitle
  • Previous by thread: Preventing Window Dragging
  • Next by thread: Custom Menus
  • Index(es):
    • Date
    • Thread