Re: Dragging from NSCollectionView in inactive window?
Re: Dragging from NSCollectionView in inactive window?
- Subject: Re: Dragging from NSCollectionView in inactive window?
- From: Rick Mann <email@hidden>
- Date: Sun, 10 Mar 2013 16:51:18 -0700
On Mar 10, 2013, at 16:47 , Rick Mann <email@hidden> wrote:
> Hi. I have a library window with items in an NSCollectionView that I'd like to be able to drag from without first making the window active. Is this possible?
>
> I see I can set -[NSView acceptsFirstMouse:], but that will make it accept all mouse clicks and then make the window active. I want Finder-like dragging behavior, where a drag can be initiated without making the drag source window active.
>
> I figure this is a common question, but I'm having a terrible time with the internet connection where I am currently, and the few searches I was able to do didn't seem to return relevant results.
And suddenly I found the solution!
http://cocoadev.com/wiki/PreventWindowOrdering
(I have yet to test this.)
--
Rick
_______________________________________________
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