• 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: Initiating drag and drop from NSToolbarItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initiating drag and drop from NSToolbarItem


  • Subject: Re: Initiating drag and drop from NSToolbarItem
  • From: Peter Ammon <email@hidden>
  • Date: Tue, 22 Jun 2010 19:12:24 -0700

On Jun 22, 2010, at 6:56 PM, Gideon King wrote:

> Hi, I have a toolbar item that I want to use for having an item that I drag onto my main view. I can initiate the drag from my custom view, but the window gets moved by the mouse down/dragged. I'm sure this will be trivial, but can't think of how to do this...I've overridden mouseDown: and mouseDragged: in my view, but the window still gets dragged.
>
> How do I stop the window being dragged?

Sounds like you want to override -mouseDownCanMoveWindow to return NO.

Hope this helps,
-Peter_______________________________________________

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

  • Follow-Ups:
    • Re: Initiating drag and drop from NSToolbarItem
      • From: Gideon King <email@hidden>
References: 
 >Initiating drag and drop from NSToolbarItem (From: Gideon King <email@hidden>)

  • Prev by Date: Core Data can't do Distinct Relationships to Same Entity
  • Next by Date: Re: Problem with stopModalWithCode on a different thread
  • Previous by thread: Initiating drag and drop from NSToolbarItem
  • Next by thread: Re: Initiating drag and drop from NSToolbarItem
  • Index(es):
    • Date
    • Thread