Hi,

I like the idea of HotCocoa, but it should not go too far, and this is maybe taking it one step too far imo. The problem is that at some point you _will_ have to use real Cocoa, because HotCocoa can't wrap everything. If you are frightened by the verbosity of this line of code, well than working with edge cases in Cocoa will give you nightmares. Maybe this is actually not an edge case, because a lot of people might use this method. But my point is that MacRuby & HotCocoa should not teach the users how to _not_ use Cocoa, but simply provide
shortcuts for the majority of simpler cases.

Eloy

On 9 nov 2008, at 10:41, Matt Aimonetti wrote:


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


_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to