Drag and Drop in a WebView - even with no registeredDraggedTypes!?!
Drag and Drop in a WebView - even with no registeredDraggedTypes!?!
- Subject: Drag and Drop in a WebView - even with no registeredDraggedTypes!?!
- From: Thomas Engelmeier <email@hidden>
- Date: Fri, 8 Sep 2006 12:30:19 +0200
Hi,
I need to disable WebViews (drag and) drop support in favor for one
of its superviews.
The following works snippet fine for NSImageView subviews but I don't
get it disabled for an auxiliary WebView. Is there any more magic to
get that done?
- (void)deactivatePasteboardInSubviewsOf:(NSView *)view {
NSEnumerator *e = [[view subviews] objectEnumerator];
if( (view != self) && ([view registeredDraggedTypes]) )
[view unregisterDraggedTypes];
NSView *subview;
while( (subview = (NSView *)[e nextObject]) != nil )
{
[self deactivatePasteboardInSubviewsOf:subview];
}
}
TIA,
Tom_E
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden