Re: How to get registered dragged types from NSWindow?
Re: How to get registered dragged types from NSWindow?
- Subject: Re: How to get registered dragged types from NSWindow?
- From: Keary Suska <email@hidden>
- Date: Mon, 14 Jan 2013 08:30:27 -0700
On Jan 14, 2013, at 5:02 AM, email@hidden wrote:
>
> On 14 Jan 2013, at 11:17, Oleg Krupnov <email@hidden> wrote:
>
>> Unlike NSView, there is no -registeredDraggedTypes method in NSWindow.
>> How do I find out which dragged types a window is registered to?
>>
>
> Your window has to know what drag types it will respond to.
> NSDraggingDestination defines the methods that will be received by the window during the drag.
> Query the NSDraggingInfo -draggingPasteboard to see what types are available.
First off, NSWindow really only acts as a proxy for drag operations, which may be why it doesn't provide access to registered drag types. It expects its delegate to handle the drag implementation. With that in mind, and that your window also has to be specifically told (usually by the delegate) which drag types it should respond to, asking the delegate object for that information makes the most sense.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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