On Jan 14, 2013, at 5:02 AM, [email protected] wrote:

> 
> On 14 Jan 2013, at 11:17, Oleg Krupnov <[email protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to