Re: Preventing Window Dragging
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