John McMullan
jmcmu****@adgca*****
Fri Apr 20 19:02:06 JST 2007
Actually If I get more "creative" and do this class Array alias count size alias objectAtIndex at end class Object def copyWithZone(zone) clone end end I only get this "no implicit conversion from nil to integer" john On 20 Apr 2007, at 09:52, John McMullan wrote: > In my application I get this error and a crash... > > 2007-04-20 09:30:46.111 Clerk[531] NSApplicationMain - > NSInvalidArgumentException - *** -[NSProxy > doesNotRecognizeSelector:count] called! > 2007-04-20 09:30:46.111 Clerk[531] /Library/Frameworks/ > RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb: > 155:in `NSApplicationMain' > /Users/john/src/Clerk/build/Deployment/Clerk.app/Contents/Resources/ > rb_main.rb:27 > > I am using bindings and kvc_array_accessors for a Ruby array > > On a hunch I put this at the top of the file > > class Array > alias count size > end > > And now I get this one instead... > > 2007-04-20 09:44:53.416 Clerk[567] NSApplicationMain - > NSInvalidArgumentException - *** -[NSProxy > doesNotRecognizeSelector:copyWithZone:] called! > 2007-04-20 09:44:53.416 Clerk[567] /Library/Frameworks/ > RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb: > 155:in `NSApplicationMain' > /Users/john/src/Clerk/build/Deployment/Clerk.app/Contents/Resources/ > rb_main.rb:27 > > > I thought I could use a Ruby Array in bindings... could someone > please confirm? > > john > > _______________________________________________ > Rubycocoa-devel mailing list > Rubyc****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel >