문제

I am making a simple Mac Dashboard widget which would show a webpage in a webview, from a user selectable URL.

To be honest, I assumed there would simply be a 'webview' type part in the Library which I could just drop on. I've tried fiddling with the canvas part and Googling, but to no avail.

Any ideas of how to simply show http://www.example.com/page.html in a widget?

Thanks!

도움이 되었습니까?

해결책

In case anybody comes here from a search or something, I ended up solving my problem by just viewing the widget's HTML and adding an <iframe> to it. Don't know why I didn't think of that before, but it all works fine.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top