All Questions
7 questions
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 ...
1
vote
1
answer
2k
views
Inject Custom CSS and javascript into WebView
How can I inject custom CSS into a WebView like changing the background-color: of http://www.apple.com/. Javascript would also be nice because in the future I would like to have control of the ...
7
votes
3
answers
2k
views
Mac OS X WebKit and CSS position:fixed scrolling
We've run into an optimization problem using WebKit on Mac OS X that we're hoping someone can help us with.
We've written a Cocoa app for Mac OS X that essentially manages a single WebView that ...
6
votes
3
answers
4k
views
How do I make a WebKit WebView use a CSS style sheet?
I made an html wich links to a CSS file, open it in browsers, and the styles show correctly.
Then I load it in a WebView and the styles don't show.
I even tried to insert a <link> into the DOM ...
1
vote
1
answer
621
views
Cocoa Webview - only show a specific <div>
This question is pretty simple - is it possible to only show a specific < div>s with specific id's in a WebView? If so, how do I do it?
1
vote
4
answers
858
views
How do I prevent a WebView from scaling down a rendered web page? [duplicate]
I'm developing a Cocoa/Obj-C application that involves a WebView (from the WebKit framework). I've noticed that this WebView presents a slightly scaled-down version of the rendered webpage. An example ...
0
votes
2
answers
1k
views
Cocoa WebKit - detecting CSS rollover/hover
I have a WebView displaying a HTML page, linking to a CSS file.
The CSS file makes use of the pseudoclasses :active and :hover for rollover effects.
Q. How can I tell, in my WebView, when :active ...