Laurent Sansonetti
lsans****@apple*****
Fri Jan 19 23:46:36 JST 2007
I just fixed in SVN. Note that OSX.NSLog("hello %d", 123) will not work as expected, because 123 will be converted as an ObjC object (we can't know the types of variadic arguments, so we assume that it's _C_ID). So the right call is: OSX.NSLog("hello %@", 123). Laurent On Jan 19, 2007, at 12:07 PM, Laurent Sansonetti wrote: > Oops, looks like I broke variadic functions. I will fix this today :) > We should also have a test case. > > Laurent > > On Jan 19, 2007, at 11:45 AM, Fujimoto Hisa wrote: > >> Hi >> >> current apple-unstable (1451:1452) fail to call NSLog with variable >> arguments like the following. r1391 (0.10.1 release) hasn't this >> problem. >> seems Foundation.xml hasn't any problem. >> I can't find the reason so this is just a report. >> >> 1.8.2 >> irb(main):001:0> require 'osx/cocoa' >> => true >> irb(main):002:0> OSX.NSLog("hello") >> 2007-01-19 19:35:03.648 irb[3291] hello >> => nil >> irb(main):003:0> OSX.NSLog("hello %d", 123) >> ArgumentError: wrong number of argument(s) (expected 1, got 2) >> from (irb):3:in `NSLog' >> from (irb):3 >> >> -- >> hisa >> >> _______________________________________________ >> Rubycocoa-devel mailing list >> Rubyc****@lists***** >> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel > > _______________________________________________ > Rubycocoa-devel mailing list > Rubyc****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel