kimura wataru
kimur****@i*****
Tue Oct 31 22:30:57 JST 2006
Thanks, Laurent! I read the code and tested. Threre are two problems from placeholder: * RubyCocoa releases placeholder objects. this leads a crash. * an object generated with placeholder is too retained in ocm_retain_result_if_necessary(). the object leaks. I think the change of the apple-unstable branch did not fix the latter problem. % irb -r osx/cocoa irb> OSX::RUBYCOCOA_VERSION => "0.9.0apple-unstable" irb> dict = OSX::NSMutableDictionary.alloc.init => #<OSX::NSCFDictionary:0x835f72 class='NSCFDictionary' id=0x4faf50> irb> dict.retainCount => 2 On Mon, 30 Oct 2006 22:54:50 +0100, Laurent Sansonetti wrote: > Hi Kimura, > > Good catch. I found this problem a few weeks ago, and fixed it in the > unstable branch. > > http://lists.sourceforge.jp/mailman/archives/rubycocoa-devel/2006-September/000386.html > > (see last point) > > Unfortunately I forgot to port the fix to trunk. Sorry :-/ > > You can see in apple-unstable how I fixed it if you want. > > Laurent > > On Oct 30, 2006, at 10:47 PM, kimura wataru wrote: > >> (1) is caused by "placeholder" class trick of Cocoa. The code >> "NSMutableDictionary.alloc.init" in BigLetterView.rb does not >> work correctly. -- kimura wataru