Re: Initiating drag and drop from NSToolbarItem
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