"can't convert Class into String (TypeError)"
I'm getting this error when trying to do a performSelector:target:argument:order:modes: on an NSRunLoop, and as far as I can tell I have all the arguments correct: https://gist.github.com/955260 You can reproduce by simply dropping that AppDelegate.rb in to a freshly generated MacRuby project; I just tested it against the latest from master. Am I doing something stupid here, or is something broken underneath? -- Nathaniel Talbott <:((><
On Wed, May 4, 2011 at 10:31, Nathaniel Talbott <nathaniel@talbott.ws> wrote:
Am I doing something stupid here, or is something broken underneath?
To answer my own question, I was doing something stupid. Turns out the argument to "modes:" should be an array of strings, not a single string. One thing I learned: if something's not working in MacRuby, it's helpful to try it out in native ObjC since the error message there is typically a lot more helpful. -- Nathaniel Talbott <:((><
yep.. LLDB should be tweaked to understand MacRuby. well.. sometime :) also -> http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Founda... says here modes arg should be an array. I just saw the question and your answer, or I would have responded faster. On Wed, May 4, 2011 at 6:19 PM, Nathaniel Talbott <nathaniel@talbott.ws>wrote:
On Wed, May 4, 2011 at 10:31, Nathaniel Talbott <nathaniel@talbott.ws> wrote:
Am I doing something stupid here, or is something broken underneath?
To answer my own question, I was doing something stupid. Turns out the argument to "modes:" should be an array of strings, not a single string.
One thing I learned: if something's not working in MacRuby, it's helpful to try it out in native ObjC since the error message there is typically a lot more helpful.
-- Nathaniel Talbott <:((>< _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-- Pavlos Vinieratos
participants (2)
-
Nathaniel Talbott
-
Pavlos Vinieratos