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
|
===============================+============================
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 mails | Author | Date |
|---|---|---|
| Geert B. Clemmense… | May 2, 07:11 | |
| Kyle Sluder | May 2, 07:15 | |
| Henry McGilton (St… | May 2, 07:26 |






Cocoa mail archive

