From: Dave H. <gr...@gr...> - 2005-06-13 22:50:40
|
Sigh. I'm back. I'm staring at a misleading error message, and am mystified. /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/ objc/oc_wrapper.rb:17:in `ocm_send': NSImage#initByReferencingFile: - methodSignature is nil. (OSX::OCMessageSendException) I *think* "methodSignature is nil" is somebody's (Cocoa? RubyCocoa?) way of saying "no method by that name found here." Um? NSImage definitely has such a method. So something else is wrong. But I have no idea what it is. It can't find NSImage? I'm not asking for its method in the right way? I sent the wrong parameters, or the wrong type of parameters, or the wrong class of parameters, or the wrong number of parameters? @myImages = Array.new(6) {|i| NSImage.initByReferencingFile("Image" + (i+1).to_s + ".gif")} My XCode project has files named "Image1.gif" "Image2.gif" . . . "Image6.gif" in it. The AppleScript version finds them as planned. Hints and clues gratefully awaited. |