[Rubycocoa-devel 853] Array and kvc_array_accessor

Back to archive index

John McMullan jmcmu****@adgca*****
Fri Apr 20 17:52:34 JST 2007


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




More information about the Rubycocoa-devel mailing list
Back to archive index