#999: Handle Obj-C protocols better in MacRuby ----------------------------------------+----------------------------------- Reporter: martinlagardette@… | Owner: lsansonetti@… Type: enhancement | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- Comment(by martinlagardette@…): Replying to [comment:3 lsansonetti@…]:
I think this patch will not allow ruby classes to declare protocols they conform to, yet. I guess we would need to introduce an API for this. Yep, it won't. It will just "crash less" when using with +protocolWithName :-)
Replying to [comment:4 lsansonetti@…]:
Looks like the class_addProtocol() runtime function could be used. I wonder if we can call it automatically, once all methods of a known protocol are defined. Well, that's what I thought too. I wanted to see if I could fix this bug by using the runtime, but the main problem I stumbled upon is that I don't know where we could list the protocols a class conforms to?
-- Ticket URL: <http://www.macruby.org/trac/ticket/999#comment:5> MacRuby <http://macruby.org/>