• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dragging a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Dragging a window (From: "Geert B. Clemmensen" <email@hidden>)
 >Re: Dragging a window (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: Dragging a window
  • Next by Date: CGevent and cocoa compatibility
  • Previous by thread: Re: Dragging a window
  • Next by thread: CGevent and cocoa compatibility
  • Index(es):
    • Date
    • Thread