如何在 Mac 仪表板小部件中显示 Web 视图?
我正在制作一个简单的 Mac 仪表板小部件,它将通过用户可选择的 URL 在网络视图中显示网页。
老实说,我认为库中只有一个“webview”类型的部分,我可以直接将其放在上面。我尝试摆弄画布部分和谷歌搜索,但无济于事。
关于如何在小部件中简单地显示 http://www.example.com/page.html
有什么想法吗?
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果有人通过搜索或其他方式来到这里,我最终通过查看小部件的 HTML 并向其添加
来解决我的问题。不知道为什么我之前没有想到这一点,但一切都很好。
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.