Re: [MacRuby-devel] MacRuby pointers and Obj-C function returning a alue by reference

2013-01-21 Thread Watson
tring("hello") => hello{ } >> str.attribute(NSUnderlineStyleAttributeName, atIndex:0, effectiveRange:range) => nil Cheers. Watson > I am trying to implement the following method of NSAttributedString in > Macruby: > > - (id)attribute:(NSString *)attributeName atIndex:(NSUInteger)inde

Re: [MacRuby-devel] BasicObject

2012-07-25 Thread Watson
Hi Gabriel, MacRuby's classes implementation is based on Objective-C. Ruby's Object class is alias of Objective-C's NSObject. So, Ruby classes/methods and objects are Objective-C classes, methods and objects respectively. The converse is also true. Objective-C and MacRuby APIs can be interchangea

Re: [MacRuby-devel] Installing MacRuby 0.12 with Xcode 4.3.3

2012-06-19 Thread Watson
Hi, We have known the problem to relate MacRuby.h with Xcode 4.3.3. - http://lists.macosforge.org/pipermail/macruby-devel/2012-June/008857.html - https://github.com/MacRuby/MacRuby/issues/107 To avoid this problem, please use Xcode 4.3.2 (or before), or set framework search path to your project

Re: [MacRuby-devel] problem using gems with MacRuby 0.12

2012-06-12 Thread Watson
Hi, MacRuby does not load `rubygems' automatically. So, you need 'require "rubygems"' before loading gem which you want. Please refer to http://macruby.macosforge.org/trac/ticket/855 Thanks 2012/6/12 Jean-Denis MUYS : > Hi again, > > It seems there is some issue with MacRuby installing gems,

Re: [MacRuby-devel] MacRuby.h not found

2012-06-12 Thread Watson
Hi, MacRuby does not support Mountain Lion yet. Please use MacRuby with Lion or Snow Leopard. Thanks 2012/6/12 Jean-Denis MUYS : > Hello, > > After installing, in order: > > - Xcode 4.3.3 (update of 4.3.2) > - Xcode 4.5DP1 > - MacRuby 0.12 binary distribution > > I create a new MacRuby project

Re: [MacRuby-devel] MacRuby 0.12 release note

2012-06-11 Thread Watson
2 à 12:20, Min Soo Kim a écrit : > >> Thank you for your efforts, team! >> We are behind you from all over the world. >> >> from Seoul Korea, >> >> Min Soo Kim >> >> On Jun 11, 2012, at 6:20 PM, Watson wrote: >> >>> MacRuby 0.12 is now availabl

[MacRuby-devel] MacRuby 0.12 release note

2012-06-11 Thread Watson
MacRuby 0.12 is now available. What's new in this release (since 0.10): - Improve stability and compatibility by total 1168 commits - Changed RUBY_AUTHOR to "The MacRuby Team" - Add support for XCode 4.3 - Drop support for XCode 4.2 and earlier - Upgrade to RubyGems 1.8.20 - Upgrade to

Re: [MacRuby-devel] StringScanner Performance

2012-04-19 Thread Watson
Hi, I think your report is relating with http://www.macruby.org/trac/ticket/1341 Thanks 2012/4/19 Sylvester Keil : > Dear all, > > while debugging performance issues for a gem (bibtex-ruby) I noticed that > MacRuby's StringScanner implementation creates new Regular Expression objects > every

Re: [MacRuby-devel] Installer Fails

2012-04-17 Thread Watson
I fixed the MacRuby sample. Please try with https://github.com/MacRuby/MacRuby/compare/eabb31c507...9539a531a7 I think you will be able to build the MacRuby samples by buildall.rb: $ ruby buildall.rb ~/tmp Thanks 2012/4/17 Robert Rice : > Hi Watson, > > The 2012-04-17 nightly fa

Re: [MacRuby-devel] Installer Fails

2012-04-16 Thread Watson
ll using Xcode 3.2.4. Does MacRuby now require Xcode 4? > > I backed up to the 1/1/2012 nightly. The 2/21/2012 nightly didn't have Xcode > MacRuby templates. > > Thanks, > Bob Rice > > > On Apr 16, 2012, at 8:04 PM, Watson wrote: > >>> - Template and rb_n

Re: [MacRuby-devel] Installer Fails

2012-04-16 Thread Watson
> - Template and rb_nibtool was not installed. I mistook. rb_nibtool was not installed. If you will install Xcode, you might need to reinstall MacRuby. 2012/4/17 Watson : > Hi > > Hmm, If Xcode was not installed, Installer might show "Installation Failed". > https://g

Re: [MacRuby-devel] Installer Fails

2012-04-16 Thread Watson
Hi Hmm, If Xcode was not installed, Installer might show "Installation Failed". https://github.com/MacRuby/MacRuby/blob/master/misc/release/package_script/postinstall#L10 - MacRuby framework was installed in your environment. So, you can use "macruby" command in Terminal. - Template and rb_nibtoo

Re: [MacRuby-devel] Update (Laurent Sansonetti)

2012-04-12 Thread Watson
uilt on 10.8, at least. >> >> I don't have 10.8, but I heard there are problems with loading up >> BridgeSupport files. >> >> If one of you guys can try to build the code and report the result of >> your attempt, that would be helpful. If you fear the NDA t

Re: [MacRuby-devel] Update (Laurent Sansonetti)

2012-04-12 Thread Watson
> > > > If there's any way I can help with that, please let me know. > > > > > On Thu, Apr 12, 2012 at 7:04 AM, Watson wrote: >> >> Hi, >> >> We only added the install location to correspond to Xcode 4.3 for >> template and rb_nibtool

Re: [MacRuby-devel] Update (Laurent Sansonetti)

2012-04-12 Thread Watson
Hi, We only added the install location to correspond to Xcode 4.3 for template and rb_nibtool. I think we did not change template itself. I had confirmed below combination when we corresponded to Xcode 4.3, and MacRuby worked to expected. OS X 10.6.8 + Xcode 3.2.6 OS X 10.6.8 + Xcode 4.2.

Re: [MacRuby-devel] Nightly Build Package is not latest.

2012-02-28 Thread Watson
uilder uses a modified rake task which conflicted with recent > changes so it stopped updating automatically. I have fixed the conflict and > the nightly for the 21st should be up to date. > > -Bill > > On Feb 21, 2012, at 6:22 AM, Watson wrote: > >> Hi, >> >

[MacRuby-devel] Nightly Build Package is not latest.

2012-02-21 Thread Watson
Hi, I installed Nightly Build (macruby_nightly-2012-02-21.pkg) from http://www.macruby.org/files/nightlies/ However, It looks like recently commits (since 2012/02/10) is not applied. $ wget http://www.macruby.org/files/nightlies/macruby_nightly-2012-02-21.pkg $ sudo installer -pkg macruby_nightly

Re: [MacRuby-devel] Xcode 4.3 move template files

2012-02-18 Thread Watson
alled rb_nibtool from Interface Builder. > why should we move the rb_nibtool? With Xcode 4.2, rb_nibtool is installed in /Developer/usr/bin. why should we move the Templetes? I think it's the same answer about rb_nibtool. Thanks, 2012/2/18 Sean Mateus : > Hi Watson, > > can you

Re: [MacRuby-devel] Xcode 4.3 move template files

2012-02-18 Thread Watson
Hi, If you want to move MacRuby's Templetes into User folder, 1. create "~/Library/Developer/Xcode/Templates/Application" 2. copy "misc/xcode4-templates/File Templates" and "misc/xcode4-templates/Project Templates" into above folder. However, I don't know whether move the rb_nibtool as same way

Re: [MacRuby-devel] macruby GCD bug?

2012-01-13 Thread Watson
Hi, it looks like the variable's scope issue. I don't know detail why this crash happen yet. for workaround, you could use variable $array or @array instead of array. Thanks, 2012/1/13 Alan Skipp : > I've been continuing with my efforts to implement Fibers using GCD and in the > process I thi

Re: [MacRuby-devel] TwUI & MacRuby issue

2011-12-24 Thread Watson
Hi issac, I don't understand reason of crashing yet. However, it seems that MacRuby has been supported blocks as property. https://gist.github.com/1517083/ Thanks, 2011/12/24 isaac kearse : > Hi Watson, > > Thanks for taking a look! > > This is where it crashes in TwUI:

Re: [MacRuby-devel] TwUI & MacRuby issue

2011-12-23 Thread Watson
Hi, Now I have seen your project. Apparently, it is crashed by lib/views/ExampleTabBar.rb(line:10) To determine the cause, I need more time. Thanks, 2011/12/24 isaac kearse : > I should have also mentioned that I can reproduce this crash on > MacRuby 0.10, 0.11 and the latest nightly build. >

Re: [MacRuby-devel] Source List: NSOutlineView in a NSScrollView

2011-12-12 Thread Watson
like as: frame = button.frame frame.size.width = 20 button.setFrame(frame) If make the badge too, it might easily using the https://github.com/Perspx/PXSourceList :) Thanks, 2011/12/13 François Boone : > Hi, > > Thank-you very much Watson for your SourceListViewBased exam

Re: [MacRuby-devel] Source List: NSOutlineView in a NSScrollView

2011-12-09 Thread Watson
b.com/Watson1978/MacRuby-Samples/tree/master/SourceListViewBased 2011/12/9 François Boone : > Hi, > > With help of Matt and Watson, I have made a tree using Outline View object > and it works fine. > Now I would like to go one step further. > > I would like to use the Sourc

Re: [MacRuby-devel] ruby structure for NSOutlineView

2011-11-26 Thread Watson
Hi, My samples might help you slightly. - https://github.com/Watson1978/MacRuby-Samples/tree/master/SourceList - https://github.com/Watson1978/MacRuby-Samples/tree/master/SourceList2 - https://github.com/Watson1978/MacRuby-Samples/tree/master/SourceListBinding enjoy! :) 2011/11/27 François Bo

Re: [MacRuby-devel] REXML UTF-8 Encoding not found

2011-10-08 Thread Watson
Hi > https://github.com/ferrous26/MacRuby/commit/e4525fc4f9d91ffbad155340b99710e750aef5b7 I merged Mark's patch. This problem would be fixed with MacRuby nightly build. Thanks. 2011/10/8 Mark Rada : > It seems that I lied a little, the commit where I made the change is here: > > https://github.

Re: [MacRuby-devel] macruby produces strings with encodings that differ from MRI

2011-09-17 Thread Watson
Hi, Maybe related to http://www.macruby.org/trac/ticket/742. MacRuby ignore magic-comment, and uses default encoding UTF8. Thanks. 2011/9/18 Steve Clarke : > Code > > > ABC='ABC' > puts "ABC[0] encoding is #{ABC[0].encoding}" > puts "?\\xff encoding is #{?\xff.encoding}" > > > Output >

Re: [MacRuby-devel] Experiences with m17N using PostgreSQL with macruby

2011-08-30 Thread Watson
Hi, I filed this issue as #1383 of ticket. Thank you. 2011/8/28 Eloy Duran : > In principle MRI is always right, so unless there's a comment or spec that > explains why we deviate it's a bug. > > Eloy > > On 24 aug. 2011, at 18:19, Steve Clarke wrote: > >> I want to use PostgreSQL with macruby.

Re: [MacRuby-devel] macruby does not compile for me on Lion with xcode 4.1

2011-07-23 Thread Watson
Hi, According to the README, please install the LLVM if you will compile the MacRuby. https://github.com/MacRuby/MacRuby/blob/master/README.rdoc Thanks, 2011/7/24 Conrad Taylor : > Hi, is it necessary to the install llvm-config or llvm if you're using Mac > OS 10.7 and Xcode 4.1? > Thanks in adv

Re: [MacRuby-devel] Re: Nokogiri leaks

2011-05-29 Thread Watson
I filed a ticket as http://www.macruby.org/trac/ticket/1308 Thank you! 2011年5月29日12:22 Laurent Sansonetti : > The free function pointer is not honored by MacRuby, yet. But it can > be done :) Can you file a ticket? > > Thanks, > Laurent > > On Sat, May 28, 2011 at 8:07 AM,

[MacRuby-devel] Re: Nokogiri leaks

2011-05-28 Thread Watson
Hi, I think that MacRuby needs to call a deallocating function which specified with Data_Wrap_Struct() macro. Thank you. 日付:2011年5月28日土曜日、時刻:23:13、差出人:Guido Soranzio: > While experimenting with array controllers and NSTableViews, I was facing huge > memory leaks. I thought the culprits were

Re: [MacRuby-devel] Concurrent SSL requests -> segfault

2011-04-12 Thread Watson
Hi, I committed a patch as https://github.com/MacRuby/MacRuby/commit/65fee047a678ae8be9124176307969cbb1d57e6d Thank you for your report! :) Thanks 2011/4/9 Watson : > Hi, everyone > > I think that we should implement callback functions for > CRYPTO_set_locking_ca

Re: [MacRuby-devel] Concurrent SSL requests -> segfault

2011-04-09 Thread Watson
Hi, everyone I think that we should implement callback functions for CRYPTO_set_locking_callback() and CRYPTO_set_id_callback() in ext/openssl. see http://www.openssl.org/support/faq.html#PROG1 > Multi-threaded applications must provide two callback functions to OpenSSL by > calling CRYPTO_set_l

Re: [MacRuby-devel] "unrecognized runtime type" TypeError

2011-03-05 Thread Watson
Hi, I recommend that you would check the trend of the BridgeSupport. http://www.macruby.org/blog/2010/12/15/bridgesupport-preview2.html Regards 2011/3/6 Peter Jaros : > Hey, all. > > I'm still seeing this bug in MacRuby 0.8: > > http://www.macruby.org/trac/ticket/648 > unrecognized runtime type

Re: [MacRuby-devel] Can't build the MacRuby latest.

2011-01-28 Thread Watson
  next > end > ensure > puts > end > foo(nil) > > I'll create a ticket for that. > > On Jan 28, 2011, at 6:43 PM, Watson wrote: > > Hi, > > Now, I'm rebuilding all of MacRuby latest. > > But, it seems that does not finish  forever with following b

[MacRuby-devel] Can't build the MacRuby latest.

2011-01-28 Thread Watson
Hi, Now, I'm rebuilding all of MacRuby latest. But, it seems that does not finish forever with following build log. snip ./miniruby -I. -I./lib bin/rubyc --internal --arch x86_64 -C "ext/ripper/lib/ripper/filter.rb" -o "ext/ripper/lib/ripper/filter.rbo" ./miniruby -I. -I./lib bin/rubyc -

Re: [MacRuby-devel] [macruby-changes] [5186] MacRuby/trunk/hash.h

2011-01-21 Thread Watson
: 13.86sec user system totalreal 13.79 0.22 14.01 ( 9.271439) 2011/1/22 Laurent Sansonetti : > Hi Watson, > This isn't good, rhash_modify() must be very fast, so calling OBJ_FROZEN and > OBJ_UNTRUSTED is not good there. > Can we look up

Re: [MacRuby-devel] planning 0.7 release

2010-08-24 Thread Watson
Hi. I hope that "#763 : HotCocoa does not work with MacRuby Trunk." is fixed so that works on MacRuby 0.6. :-) Thank you! 2010/8/24 Laurent Sansonetti : > On Aug 23, 2010, at 7:20 PM, Laurent Sansonetti wrote: >> I will go through the tracker and identify release blockers (feel free to >> reply

Re: [MacRuby-devel] testing?

2010-07-09 Thread Watson
Hi. I use the unit test of Ruby1.9.2 RC1 and test MacRuby itself :D - http://github.com/Watson1978/test-macruby - http://github.com/Watson1978/test-macruby/downloads 2010/7/10 Ryan Davis : > So are you guys not testing your macruby code? I was hoping that the ruby > community would bring the

Re: [MacRuby-devel] llvm-config?

2010-07-09 Thread Watson
Sorry. Is Intel Core Duo a 32bit arch? So, please build only 32bit. Build a LLVM: $ env UNIVERSAL=1 UNIVERSAL_ARCH="i386" Build a MacRuby: $ RC_ARCHS=i386 rake 2010/7/9 Watson : > It might be good to build only 64bit.  :) > > Build a LLVM: >  $ env UNIV

Re: [MacRuby-devel] llvm-config?

2010-07-09 Thread Watson
le > or directory) > make[2]: *** [/Users/below/dev/llvm-trunk/Release/bin/tblgen] Error 1 > make[1]: *** [TableGen/.makeall] Error 2 > make: *** [all] Error 1 > > OS X 10.6.4, IntelCore Duo ... > > Any pointers? > > I have repeated the procedure and make sure I follow it

Re: [MacRuby-devel] llvm-config?

2010-07-09 Thread Watson
Hi. Would you install LLVM as following? :D $ svn co -r 106781 https://llvm.org/svn/llvm-project/llvm/trunk llvm-trunk $ cd llvm-trunk $ env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ ./configure --enable-bindings=none --enable-optimized --with-llvmgccdir=/tmp

Re: [MacRuby-devel] [MacRuby] #768: Timeout is broken. It seems MacRuby does not dispatch the Thread.

2010-07-01 Thread Watson
Hi. Do you mean that it is a problem to use a MainThread? I post a patch that do not use a MainThread. Please check it. Thank you! timeout.rb.diff Description: Binary data On 2010/07/01, at 10:07, MacRuby wrote: #768: Timeout is broken. It seems MacRuby does not dispatch the Thread.

Re: [MacRuby-devel] A build error occurs that specified i368 arch with Trunk Head.

2010-06-28 Thread Watson
t On Jun 28, 2010, at 5:16 PM, Watson wrote: Hi, Laurent. I watched a similar error message that I reported an issue: https://www.macruby.org/trac/ticket/763 Thank you for your reply. On 2010/06/29, at 9:00, Laurent Sansonetti wrote: I found a better reduction: $ VM_VERIFY_IR=1 arch

Re: [MacRuby-devel] A build error occurs that specified i368 arch with Trunk Head.

2010-06-28 Thread Watson
at 4:29 PM, Watson wrote: Hi. I will try on a better environment tomorrow. Could you give us the crash report of miniruby? (It should be somewhere in ~/Library/ Logs/CrashReporter). I send a crash report. Thank you. 2010/6/28 Laurent Sansonetti : Hi, I tried running extconf.rb with 32-bit mi

Re: [MacRuby-devel] A build error occurs that specified i368 arch with Trunk Head.

2010-06-27 Thread Watson
quire './extconf.rb'" > creating Makefile > $ > > I will try on a better environment tomorrow. Could you give us the crash > report of miniruby? (It should be somewhere in ~/Library/Logs/CrashReporter). > > Laurent > > On Jun 27, 2010, at 11:01 AM, Watson

[MacRuby-devel] A build error occurs that specified i368 arch with Trunk Head.

2010-06-27 Thread Watson
A build error occurs when I specified i386 arch only. x86_64 arch only or Universal Binary build succeeded. $ RC_ARCHS=i386 rake jobs=2 --- snip --- ./miniruby -I. -I./lib bin/rubyc --internal --arch i386 -C "ext/ripper/lib/ripper/sexp.rb" -o "ext/ripper/lib/ripper/sexp.rbo" ./miniruby -I. -I./li

Re: [MacRuby-devel] An error occurs by the build of MacRuby with r4229.

2010-06-16 Thread Watson
Thank you for your quick reply. I found out that this problem is fixed. Thank you! 2010/6/17 Laurent Sansonetti : > Sorry about that... can you retry with r4232 ? > > Thanks, > Laurent > > On Jun 16, 2010, at 3:37 PM, Watson wrote: > >> The error occurred when

[MacRuby-devel] An error occurs by the build of MacRuby with r4229.

2010-06-16 Thread Watson
The error occurred when I builded the MacRuby r4229. Please fix a this error. $ RC_ARCHS=x86_64 rake jobs=2 2>&1 | tee build_log.txt $ cat build_log.txt --- snip --- /usr/bin/gcc-4.2 -std=c99 -I. -I./include -arch x86_64 -fno-common -pipe -g -Wall -fexceptions -O3 -Wno-deprecated-d