[MacRuby-devel] [MacRuby] #423: #respond_to? returns true, actual method call raises NoMethodError
MacRuby
ruby-noreply at macosforge.org
Tue Feb 23 07:29:15 PST 2010
#423: #respond_to? returns true, actual method call raises NoMethodError
---------------------------------+------------------------------------------
Reporter: ecin@… | Owner: martinlagardette@…
Type: enhancement | Status: closed
Priority: minor | Milestone: MacRuby 0.6
Component: MacRuby | Resolution: fixed
Keywords: |
---------------------------------+------------------------------------------
Changes (by martinlagardette@…):
* status: assigned => closed
* resolution: => fixed
* milestone: => MacRuby 0.6
Comment:
This is now fixed:
{{{
#!ruby
# /tmp/test.rb
framework 'Cocoa'
q = NSMetadataQuery.new
pre = NSPredicate.predicateWithFormat("grade = '7'", nil)
p q.respond_to? "setPredicate"
begin
p q.setPredicate
rescue => e
p e
ensure
p q.setPredicate pre
end
}}}
{{{
$> ./miniruby /tmp/test.rb
true
#<ArgumentError: wrong number of arguments (0 for 1)>
#<NSMetadataQuery:0x200021420>
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/423#comment:5>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list