Re: [MacRuby-devel] gen_bridge_metadata

2010-10-18 Thread Larry Wilson
Laurent, Thanks for pointing out that I was calling it as a class method. The object I'm trying to call a method on is actually instantiated as part of the nib loading process (since its defined in the .nib file), so I changed the name in the nib file to uiController, and then tried this...

Re: [MacRuby-devel] gen_bridge_metadata

2010-10-18 Thread Laurent Sansonetti
Hi Larry, Sorry, I missed your original question. So, you need to wrap up your private API with BridgeSupport files. Using gen_bridge_metadata is the way to go. Please note that it will generate XML files that annotate non-introspectable APIs, such as C enums, constants, structures, functions,

Re: [MacRuby-devel] gen_bridge_metadata

2010-10-18 Thread Larry Wilson
I'm still searching for some answers to my original question regarding calling across from objective-C to MacRuby, and vice-versa. I've done some experimenting, and had some success with a private framework, but still haven't figured out some of the bridging stuff... I created an objective-C f

[MacRuby-devel] gen_bridge_metadata

2010-10-14 Thread Larry Wilson
I've been playing around with the EmbeddedMacRuby project. I'd like to be able to: a) Run user scripts (written in Ruby) from within a cocoa application (so far, so good) b) Call ruby functions from objective-c c) Call my private objective-c API's from Ruby functions and scripts I'm ha