[MacRuby-devel] Drop on Icon

guillaume belleguic guillaume.belleguic at gmail.com
Wed Jul 13 14:40:20 PDT 2011


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 <eloy.de.enige at gmail.com> 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, guillaume belleguic wrote:
> 
>> 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 never call the above method???
>> 
>> Someone have a solution ??? Thanks
>> 
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110713/c2829d69/attachment.html>


More information about the MacRuby-devel mailing list