Laurent Sansonetti
lsans****@apple*****
Sat Apr 21 00:33:02 JST 2007
Hi John, I have no idea of what could be wrong, at a glance. Would it be possible to send us a dummy Xcode project that reproduces the problem? Normally you should be able to use Array objects in bindings. Thanks, Laurent On Apr 20, 2007, at 10:52 AM, 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