[MacRuby-devel] [MacRuby] #423: #respond_to? returns true, actual method call raises NoMethodError

MacRuby ruby-noreply at macosforge.org
Wed Nov 4 01:09:50 PST 2009


#423: #respond_to? returns true, actual method call raises NoMethodError
---------------------------------+------------------------------------------
 Reporter:  ecin@…               |       Owner:  lsansonetti@…        
     Type:  defect               |      Status:  new                  
 Priority:  major                |   Milestone:                       
Component:  MacRuby              |    Keywords:                       
---------------------------------+------------------------------------------
 framework 'Cocoa'

 a = NSMetadataQuery.new

 a.respond_to? :setPredicate # => true

 a.setPredicate # => NoMethodError: undefined method `setPredicate' for
 #<NSMetadataQuery:0x2002a1e20>

 a.setPredicate "a" # => RuntimeError: NSInvalidArgumentException:
 -[NSCFString generateMetadataDescription]: unrecognized selector sent to
 instance 0x2002309c0

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/423>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list