[MacRuby-devel] super_foo style RubyCocoa messages.
eloy.de.enige at gmail.com
Sun May 4 10:20:39 PDT 2008
I've started work on a RubyCocoa layer for MacRuby (still very naive).
Like already discussed with Laurent, an API to be able to call the
superclass implementation of a method
will be necessary for super_foo style methods to work. Imagine this
class Foo < OSX::NSObject
self if super_init
Something like this will be needed:
def method_missing(mname, *args, &block)
# convert mname to selector
super_send(selector, *args) # <- #super_send (or something like
it) should be able to send a message to the superclasses implementation.
original_method_missing(mname, *args, &block)
I hope this is clear enough?
More information about the MacRuby-devel