KInternetEventClass = KAEGetURL = 'GURL'.unpack('N').first # ... NSAppleEventManager.sharedAppleEventManager.setEventHandler self, andSelector: :"getUrl:withReplyEvent:", forEventClass: KInternetEventClass, andEventID: KAEGetURL
Laurent, thanks a lot for your help! I'm prototyping my first proper Cocoa app with MacRuby and in an effort to give something back, I'll try to put some snippets and more or less interesting subprojects on GitHub. Just started with: http://github.com/czak/flickrtest This one (using ObjectiveFlickr) strangely crashes while performing an upload. This may or may not be a MacRuby issue, but maybe someone could take a look? I pinpointed the problem to these lines in ObjectiveFlickr: http://github.com/lukhnos/objectiveflickr/blob/047ab3538c752dee629dae1756892... The app goes into gdb without any code-specific message. It works fine if I comment these lines out. Is there a problem with NSRunLoop in MacRuby that I might not be aware of? Or maybe it's my - not so pretty - code that is faulty? -- Regards, Łukasz Adamczak