• 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: Mouse Drag Ignore.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Mouse Drag Ignore. (From: Sandro Noël <email@hidden>)
 >Re: Mouse Drag Ignore. (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Handling bindings of an NSControl which forward everything to an NSCell?
  • Next by Date: Re: Mouse Drag Ignore.
  • Previous by thread: Re: Mouse Drag Ignore.
  • Next by thread: Re: Mouse Drag Ignore.
  • Index(es):
    • Date
    • Thread