Re: [MacRuby-devel] The "right" way to use gems

2009-04-17 Thread Guillaume BELLEGUIC
in a hotcocoa project i have unpack gem in a vendor/gems directory then i use them as simple library not as gems. i use this script to load them at boot time : Dir.glob(File.expand_path("#{NSBundle.mainBundle.resourcePath}/vendor/ gems/*", __FILE__)).each do |gem| $:.unshift File.join(gem,

[MacRuby-devel] Drop on Icon

2011-07-13 Thread guillaume belleguic
I'm using a delegate class for the first responder of my MainMenu.xib class AppDelegate def application(sender, openFile: a_file) NSLog("Foo") return true end end My application should be able to open a webloc file. When I drop a webloc on the application icon, it n

Re: [MacRuby-devel] Drop on Icon

2011-07-13 Thread guillaume belleguic
I also try this, but it doesn't work. I will try in pure obj-c. Envoyé de mon iPad Le 13 juil. 2011 à 20:47, Eloy Duran a écrit : > You probably want to make that a delegate of the application instance, not > the ‘first responder’. > > On 13 jul 2011, at 20:12, guillaum