Laurent Sansonetti
lsans****@apple*****
Tue Jan 9 09:59:52 JST 2007
Hi Jean-Pierre, On Jan 9, 2007, at 1:37 AM, jeanp****@gmail***** wrote: > On 1/8/07, Laurent Sansonetti <laure****@gmail*****> wrote: > Hi Jim, > > On 1/8/07, Jim Getzen <getze****@comca*****> wrote: > > Wow, #obj_send and #obj_export look very cool. RubyCocoa is > > definitely evolving and maturing. Thanks to all the RubyCocoa devs > > for their hard work. > > this is good stuff. i gave it a try and try and got it mostly > working. two things i ran into: should objc_send work even when the > method doesn't take any args and is the sugary '._' working? i'm > running rev 1384. > > # make a ruby defined method accessible in the objc runtime > class OSX::NSObject > def mySuperMethod > puts 'foo' > end > objc_export :mySuperMethod, ['id'] > end > > obj = OSX:: NSObject.alloc.init > > obj.mySuperMethod > # => foo > obj.performSelector :mySuperMethod > # => foo > obj.objc_send :mySuperMethod > # => Can't get Objective-C method signature for selector > 'mySuperMethod:' Fixed in r1385 :-) > obj._ :mySuperMethod > # => Can't get Objective-C method signature for selector '_' The #_ sugary method is not part of the release :) I also fixed some bugs reported by another user. I think that we should make a new micro release as soon as possible, because in those bugs there is a very nasty one that can be seen as a regression. Laurent