From: Neil S. <ne...@ha...> - 2005-11-25 23:49:53
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jonathan Paisley wrote: > OS-level threads don't work because Ruby doesn't support them, and ruby > threads don't work reliably because of unpleasant interactions with the > ObjC exception handling mechanism. > > I made a patch to ruby and rubycocoa a while ago that attempts to work > around the latter problem - i.e., it lets you use Ruby threads in a > RubyCocoa application. > > If you're able to recompile both ruby and rubycocoa, you could give it > a shot. It's still necessary to make AppKit calls on the main thread > (use self.performSelector...), but you can do ruby-level background > tasks ok. I've attached the two patches - one to ruby-1.8.2 and one to > RubyCocoa. The patches work just great here. Thanks! - -- Neil Stevens - ne...@ha... 'A republic, if you can keep it.' -- Benjamin Franklin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFDh6Mcf7mnligQOmERAt4nAJ9xdsCplfEHvsUxFLyiQ+WuGqWKxACdFv21 pk4+VDTPBKhf2kncKxr2PyQ= =AoMe -----END PGP SIGNATURE----- |