Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
254 views

Ability to drag a window using an element in WebView (Cocoa, Swift)

I build a web-based Cocoa app that has a WebView stretched to the whole window. The top bar of the app has tabs, controls and some unused area which I would like to use for giving user an ability to ...
Alexander Shutau's user avatar
0 votes
2 answers
184 views

Rename default context menu title on right click in webview for cocoa [Objective C]

I need to open a link in new tab in webview. But on right clik, the context menu is showing Open Link In New Window with other menus but no Open Link In New Tab. And on clicking Open Link In New ...
Soorej Babu's user avatar
0 votes
1 answer
93 views

Fullscreen (kiosk) NSWindowController with WebView need click first before been able to click on any links

I am creating an application which have a kiosk web browser as one of its features. The web browser is in a NSWindowController and a strange thing is happening: when the NSWindowController is loaded ...
Stuka's user avatar
  • 37
3 votes
0 answers
929 views

Webpages loaded in WKWebView does not respond to keypress events

I want to enable keyboard shortcuts like Cmd+c , Cmd+v to work on webpages loaded inside WKWebView, but cannot find a solution. Webview on the other hand has methods like Copy/Paste/Cut which could ...
Sorrowfull Blinger's user avatar
0 votes
1 answer
381 views

didFinishLoadForFrame for WKWebView

I was using didFinishLoadForFrame for webView component in my previous Cocoa project. -(void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame Now, webView is deprecated and I need to ...
emreoktem's user avatar
  • 2,547
0 votes
2 answers
315 views

How to get HTML element from Webview in Cocoa?

I am trying to fetch HTML element from Webview, I tried existing StackOverflow answer but it's not working for me. Getting source HTML from a WebView in Cocoa -- not working for me. @IBOutlet var ...
Pankaj Mundra's user avatar
8 votes
1 answer
3k views

JavaScript not executed in WKWebView

Since I'm going a bit crazy with this one, I've decided to give it another try and post about it here. So... I have a simple Swift/Cocoa application with a WKWebView in it. I load a local HTML file ...
Dr.Kameleon's user avatar
  • 22.8k
0 votes
1 answer
215 views

How to access a local image resource from Cocoa webview?

How to access a local image resource from the path in Cocoa webview? NSURLRequest *requst = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://10.1.24.23:8080"]]; [_webView.mainFrame ...
chanhui.zhu's user avatar
12 votes
1 answer
797 views

Print a web view content with a static header

Note: I am working with with Swift 4 for macOS. I have an NSTableView which can be filled with data and saved into Core Data. I would like to display the TableView values with a "design". I have ...
Trombone0904's user avatar
  • 4,266
9 votes
1 answer
4k views

save a web view content as pdf file

Notice: I working with swift 4 for osx. I would like to generate a pdf file from a WebView. At the moment my WebView load a html-string and show this successfully. If I press a button, the print ...
Trombone0904's user avatar
  • 4,266
2 votes
1 answer
252 views

WebView error sound when typing (Swift, Cocoa)

I recently made a simple macOS app that loads an html page form the bundle in a WebKit WebView (the new one, not legacy) but I noticed that when I type some keys in the page (not in an input box, I ...
Cristian's user avatar
  • 666
0 votes
1 answer
119 views

In Xcode (Mac), How to make textfield update to WebView URL (Cocoa)

in Xcode, I am working on a browser. (for desktop) So far, I have a basic one. I am very new to Xcode. How do I make the TextField (where you type the URL) update to what the URL the web viewer is ...
MULTI Team's user avatar
0 votes
1 answer
184 views

Using WebView in command-line: found nil error while unwrapping

I have a Cocoa App which uses WebView to load some pages and take a screenshot. Cocoa App Code: class ViewController: NSViewController, WebFrameLoadDelegate { @IBOutlet var web: WebView! ...
ssh's user avatar
  • 511
3 votes
2 answers
841 views

How to disable all NSCursor updates in my application?

In my macOS application, I have a custom WebView. When the user moves the mouse cursor over different elements in the WebView's webpage like text, links, etc. (which are implemented as subviews, I ...
Shiva Prasad's user avatar
0 votes
0 answers
239 views

How to forward an NSEvent * to a WebView?

I have a WebView that is embedded inside the UI of an audio plugin. The plugin runs as a dynamic library within a range of hosts on OS X that support the plugin format. In most hosts the WebView ...
j b's user avatar
  • 5,306

15 30 50 per page
1
2 3 4 5
30