[MacRuby-devel] [feature request] open url in browser

Matt Aimonetti mattaimonetti at gmail.com
Sun Nov 9 01:41:18 PST 2008


Here is what I had to do after Laurent showed me how to open an URL in the
browser:

NSWorkspace.sharedWorkspace.openURL(NSURL.URLWithString("http://google.com")

I wish this would be wrapped in a simpler way.

open_url_in_browser("http://google.com")
open_file_in_browser("./resources/schedule.html")  (I guess there is way to
open a pdf without having to use the browser)

-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20081109/b1731203/attachment.html>


More information about the MacRuby-devel mailing list