[Webkit-unassigned] [Bug 29614] New: API for placing DOMNode on pasteboard

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 21 14:39:21 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29614

           Summary: API for placing DOMNode on pasteboard
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cocoadev at mikeabdullah.net


At present the only public API for getting some portion of a WebView onto the
pasteboard is to select it and then use this method:

-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]

Its biggest downside is that it requires the content you want to be selected.
In our app's case, this is undesirable because:
A) The WebView refuses to accept a proper selection unless it's first
responder. Making it first responder breaks what our custom view, the first
responder, is doing.
B) It seems very messy to be temporarily changing the selection.

So why not have a WebKit extension to DOMNode?

@interface DOMNode (WebKitAdditions)
- (NSArray *)pasteboardTypes;
- (void)writeTypes:(NSArray *)pboardTypes toPasteboard:(NSPasteboard
*)pasteboard;
@end

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list