From: Nathaniel I. <nd...@bu...> - 2008-06-17 23:13:11
|
On Thu, Jun 12, 2008 at 9:21 PM, Allison Newman <dem...@ma...> wrote: > Nat, > I can't help you with the bridge, but I'm guessing that Apple's Scripting > Bridge documentation should be of interest in doing what you are trying to > do. If you haven't already looked at it, this may help: > > http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Articles/GenerateFrameworkMetadata.html#/ > /apple_ref/doc/uid/TP40005426 > > As mentioned on that page, the manpage ('man BridgeSupport 5' in the > terminal) also gives some important information. > Thanks very much for the suggestions. However, I'm not seeing the connection between Apple's BridgeSupport infrastructure and RubyCocoa's "objc_method" method. The BridgeSupport type-encoding syntax, which is XML, doesn't seem to overlap with the 'B@:@@' syntax used by objc_method, as obliquely referenced on that limechat.com page. I've found a lot of references to objc_method in context of returning a primitive value from a Ruby method to an Objective-C caller (e.g. < http://tinyurl.com/4bornj>). That shouldn't rise to the level of requiring a Ruby C extension -- objc_method appears to serve this exact purpose, I just can't figure out what syntax it expects. I'd still appreciate any assistance on that point. Thanks, -nat |