Re: Mouse Drag Ignore.
Re: Mouse Drag Ignore.
- Subject: Re: Mouse Drag Ignore.
- From: Mike Abdullah <email@hidden>
- Date: Tue, 11 May 2010 19:27:19 +0100
On 11 May 2010, at 19:00, Uli Kusterer wrote:
> On May 11, 2010, at 7:46 PM, Sandro Noël wrote:
>> Question: is it possible for the drag operation to be ignored by everything except the main window?
>
> You could create a custom content view and override NSView's -hitTest: method to return self, I suppose? You'd need a flag to only do that during drags though, not sure how you'd detect that reliably, particularly since a user could drag to the desktop and then drag that back.
>
From my own experimentation that wouldn't work as dragging actually uses its own private hit-testing method. I may have misremembered that though.
_______________________________________________
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