Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Generic NSView Support for NSDragDestination



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.