From: kimura w. <kimuraw@i.nifty.jp> - 2011-08-08 15:00:10
|
Hi, Thanks for your reportings. I've fixed this probrem at trunk r2307. http://rubycocoa.svn.sourceforge.net/viewvc/rubycocoa/trunk/src/framework/src/objc/BridgeSupport.m?r1=2307&r2=2305&pathrev=2307 I'm working for fix other problems on Lion, and I'll release the new version of RubyCocoa in this month. On Mon, 1 Aug 2011 12:26:49 -0700, Duncan McGregor wrote: > Lion seems to have fundamentally broken RubyCocoa marshalling of > binary data for me - viz : > > DESCRIPTION OF PROBLEM > > On Lion I cannot create NSData objects from RubyCocoa if any of the > bytes have their top bit set. > > STEPS TO REPRODUCE > > The following code runs fine on 10.5 and 10.6, but segfaults in Lion > (you can just paste it into an irb prompt). > > require 'osx/cocoa' > include OSX > byte = 128 > bytes = [byte].pack('i_1') > NSData.dataWithBytes_length(bytes, bytes.length) > -- kimura wataru |