• 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
Drag and Drop in a WebView - even with no registeredDraggedTypes!?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: [CodeData] Generic model migration code?
  • Next by Date: Adding background color to NSmenuItem
  • Previous by thread: Re: [CodeData] Generic model migration code?
  • Next by thread: Adding background color to NSmenuItem
  • Index(es):
    • Date
    • Thread