[Rubycocoa-devel 239] Re: Single RBObject per Ruby Object

Zurück zum Archiv-Index

kimura wataru kimur****@i*****
Fri Mar 24 18:48:22 JST 2006


Hi,

I wrote simple tests for [Rubycocoa-devel 195]. I cannnot decide 
to use OCUnit and otest tests of Objective-C side.



Sat, Feb 11, 2006 11:17:15 AM, Jonathan Paisley wrote:
>Hi,
>
>I've been playing with a patch that ensures that RBObject instances  
>created for Ruby objects are unique, rather than creating a new  
>RBObject each time a Ruby object is passed through the bridge.
>
>I had initially hoped this might make it easier to use an  
>NSOutlineView with non-NSObject-derived Ruby objects, but because  
>NSOutlineView doesn't retain the items this doesn't really work.
>
>In any case, I think it's nice to have a 1-1 mapping between Ruby  
>objects and RBObject. Perhaps it might be worth doing the same for  
>ObjCID instances too (using another hash table to map from 'id' to  
>VALUE).
>
>I've included the current patch below. If you think it's worth  
>pursuing further, I'll add test cases etc. If not, I'll keep the  
>patch around in case it becomes useful in the future.
>
>Cheers,
>Jonathan
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_devel195.diff
Type: application/octet-stream
Size: 3111 bytes
Desc: not available
Url : http://lists.sourceforge.jp/mailman/archives/rubycocoa-devel/attachments/20060324/df78eb66/attachment.obj 


More information about the Rubycocoa-devel mailing list
Zurück zum Archiv-Index