From: Nathaniel I. <nd...@bu...> - 2008-06-13 00:37:14
|
Is there a source of good documentation for objc_method? I'm trying to call, from Obj-C, a three-argument Ruby method taking an array and two strings, and returning a boolean. I'm getting inconsistent results owing to my lack of understanding -- sometimes the returned result isn't typed as boolean, sometimes calling the method raises an exception about the wrong number of arguments. I started with examples from this page: http://limechat.net/rubycocoa/bridge_test.html But I'm don't recognize the "B@:@@" syntax, which is proving google-resistant. I see some commentary about improved boolean handling in the release notes for .13, but I can't tell how much trouble I'll be biting off if I move beyond the Leopard-bundled framework. Any problem reverting, if necessary? While I'm asking, the .13.2 installer warns "If you overwrote Apple's Ruby with a custom version, please make sure that it has been built with --enabled-shared." I trust this is aimed at people who replaced /usr/bin/ruby for some reason, and not applicable to upstanding individuals with oddball /usr/local/bin/ruby. --enabled-shared is fine, I just don't want to discover down the road that my deployment targets expect similarly oddball ruby installations. Thanks, -nat |