Skip navigation.
 
mlRe: Dragging a window
FROM : Henry McGilton (Starbase)
DATE : Fri May 02 07:26:36 2008

On May 1, 2008, at 10:15 PM, Kyle Sluder wrote:

> On Fri, May 2, 2008 at 1:11 AM, Geert B. Clemmensen 
> <<email_removed>> wrote:

>>  Looking at an old NEXTSTEP application where you e.g. in a 
>> mouseDown method
>> could have the window dragged by using the dragFrom: method (as if 
>> you were
>> clicking on the window title bar). The dragFrom: method isn't 
>> available in
>> Cocoa. Any recommendation as to how one can drag a window (without 
>> a normal
>> title bar)?

>
> Don't have access to my Mac right now to test, but check out
> -[NSWindow isMovableByWindowBackground].
>
> --Kyle Sluder


Or, if the window has been created using

          styleMask:NSBorderlessWindowMask

you arrange that whatever view(s) intercept mouseDown
and mouseDragged will do the job of moving the window
appropriately.

    Cheers,
        ........  Henry


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

Related mailsAuthorDate
mlDragging a window Geert B. Clemmense… May 2, 07:11
mlRe: Dragging a window Kyle Sluder May 2, 07:15
mlRe: Dragging a window Henry McGilton (St… May 2, 07:26