hmm I guess I disagree but since I just got started with MacRuby and don't know Cocoa I might be totally wrong.
My hope is to have all the common cocoa methods available in Ruby so I can quickly create simple apps without always having to dig into the cocoa documentation and create this kind of super long/not so obvious method calls.
-Matt
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 willgive 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 provideshortcuts for the majority of simpler cases.EloyOn 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