Re: Dragging a window
Re: Dragging a window
- Subject: Re: Dragging a window
- From: "Henry McGilton (Starbase)" <email@hidden>
- Date: Thu, 1 May 2008 22:26:36 -0700
On May 1, 2008, at 10:15 PM, Kyle Sluder wrote:
On Fri, May 2, 2008 at 1:11 AM, Geert B. Clemmensen
<email@hidden> 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@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden