[MacRuby-devel] Warnings about removing methods

Vincent Isambart vincent.isambart at gmail.com
Mon Jan 5 04:09:33 PST 2009


> Is there a good reason why MacRuby would need to warn the user about  
> the hazzards of removing methods?
> Example:
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/ 
> site_ruby/mocha/class_method.rb:50: warning: removing pure Objective- 
> C method `__stubba__require__stubba__' may cause serious problem

If you read well the error message it warns for removing a *pure  
Objective-C* method. It does not warn for methods defined in normal  
Ruby.
If my memory serves me right, removing a method is not supported by  
the Objective-C runtime. There is a work around to do it, by MacRuby  
is probably one of the rare applications to do it so it may cause  
problems.



More information about the MacRuby-devel mailing list