Generic NSView Support for NSDragDestination
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