From: Duncan M. <du...@on...> - 2011-08-09 06:51:11
|
Can you tell me - does the fix need any compilation - or is it just a Ruby change? Thanks Duncan On 8 August 2011 22:16, Duncan McGregor <du...@on...> wrote: > Cool, thanks very much > > Duncan > > On 8 August 2011 07:34, kimura wataru <kimuraw@i.nifty.jp> wrote: >> 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 >> >> ------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> The must-attend event for mobile developers. Connect with experts. >> Get tools for creating Super Apps. See the latest technologies. >> Sessions, hands-on labs, demos & much more. Register early & save! >> http://p.sf.net/sfu/rim-blackberry-1 >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> > |