Cocoa WebView triggers double entry in text input boxes -
I have a WebView in an NSViewController and I load a simple local HTML page containing only one input box or text field
When I write in that element, then what I write is doubled.
In this way I show the webview.
vc = [[NSViewController alloc] init]; WebView = [[MyWebView alloc] init]; Vc.view = webView; PopOver = [[Anspopewar Alok] Init]; [PopOver set content size: nsmcases (320.0f, 480.0f)]; [Popovers set content week controller: vc]; [Popover set rule: yes]; Id cview = [[[NSAPCirmation shared application] Main window] Content view]; NSURL * url = [NSURL file URL with path: @ "index" html] ;; [[Webview Freemed] LoaderQuest: [NSRR request request with url: url]]; [Popover showRelativeToRect: [cview bounds] ofView: cview Preferred Edit: NSMaxXEdge]; Opening the HTML file in the WebView.
& lt; Html & gt; & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Textarea width = "200" & gt; & Lt; / Textarea & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Comments
Post a Comment