• 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
Generic NSView Support for NSDragDestination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Generic NSView Support for NSDragDestination


  • Subject: Generic NSView Support for NSDragDestination
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 13 Feb 2008 05:46:26 -0800

I've implemented the NSDraggingDestination protocol separately in several different views, and today I decided to clean this up by putting most of these methods in an NSView category which could be imported by all of them.

Then, in the documentation for -[NSView registerForDraggedTypes:], I found the following comment:

"... candidate destination object ... must properly implement some or all of the NSDraggingDestination protocol methods. As a convenience, NSView provides default implementations of these methods."

I can't find any information on these "default implementations". Is there any documentation?

Do they

       (a) do anything useful (such as examine the dragging pasteboard
           for registered dragged types),

or are they

(b) simply placeholders, "designed for subclassers" that just bail out
(such as returning NSDragOperationNone)?


Thanks,

Jerry
_______________________________________________

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


  • Prev by Date: Window grouping functionality in Carbon
  • Next by Date: Re: How to force "plain" shadow on NSWindow that has some transparent regions
  • Previous by thread: Window grouping functionality in Carbon
  • Next by thread: Re: How to force "plain" shadow on NSWindow that has some transparent regions
  • Index(es):
    • Date
    • Thread