[Rubycocoa-devel 207] Re: Automatic ns_overrides?

Back to archive index

kimura wataru kimur****@i*****
Fri Feb 24 01:02:31 JST 2006


Thu, Feb 23, 2006 3:24:44 PM, Jonathan Paisley wrote:
>>
>>     module_eval %Q! ns_override "#{sel}" !, __FILE__, __LINE__
>
>Since the 'method_added' method itself is called from the context of  
>the class, is it perhaps sufficient to just call ns_override  
>directly? i.e.
>
>def method_added(sym)
>    ... # your existing code
>    ns_override sel
>end
>
oops! You are right.

>Earlier today Tim Burks noted that calling ns_override if there isn't  
>an existing ObjC method defined causes an exception (he found this  
>when switching a base-class implementation between Ruby and ObjC).  
>Arguably this is an exceptional case. I think that with the  
>method_added hook we can treat that problem as resolved too, since  
>people shouldn't need to use ns_override any more.
>

I submitted a feature request [FEAT:12] about this matter.

http://sourceforge.net/tracker/?func=add&group_id=44114&atid=438479

-- 
kimura wataru




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