• 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: How to get registered dragged types from NSWindow?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to get registered dragged types from NSWindow? (From: Oleg Krupnov <email@hidden>)
 >Re: How to get registered dragged types from NSWindow? (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]
  • Next by Date: AppleScript in Sandboxed App
  • Previous by thread: Re: How to get registered dragged types from NSWindow?
  • Next by thread: AppleScript in Sandboxed App
  • Index(es):
    • Date
    • Thread