[Rubycocoa-devel 668] Bug in retrieving superclass for a objc class?

Back to archive index

Eloy Duran eloy.****@gmail*****
Sun Jan 21 20:54:02 JST 2007


Hello guys,

Thanks to the excellent suggestion of Laurent to use
rubycocoa to discover the superclasses of a class in the rdoc generator,
I now use: OSX.const_get(class_name).superclass

This works great, except for anything to do with NSProxy.
This can be:
- NSProxy itself
- A subclass of NSProxy

So calling:
OSX.const_get('NSDistantObject').superclass
OSX.const_get('NSProtocolChecker').superclass
OSX.const_get('NSProxy').superclass
OSX::NSDistantObject.superclass

Will all result in:

2007-01-21 12:45:24.357 ruby[22714] *** Uncaught exception:
<NSInvalidArgumentException> *** -[NSProxy forwardInvocation:] called!
Trace/BPT trap

Cheers,
Eloy



More information about the Rubycocoa-devel mailing list
Back to archive index