[MacRuby-devel] Accessing constants/enums

Łukasz Adamczak lukasz at czak.pl
Fri May 15 04:54:36 PDT 2009


> 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/047ab3538c752dee629dae175689230be858eb77/LFWebAPIKit/LFHTTPRequest.m#L482-497

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


More information about the MacRuby-devel mailing list