On May 1, 2008, at 10:15 PM, Kyle Sluder wrote:
On Fri, May 2, 2008 at 1:11 AM, Geert B. Clemmensen
<[EMAIL PROTECTED]> 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 PROTECTED] | http://www.trilithon.com
|
===============================+============================
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]