[MacRuby-devel] [MacRuby] #394: Unrecognized runtime type _NSRange=II

MacRuby ruby-noreply at macosforge.org
Mon Oct 19 15:15:21 PDT 2009


#394: Unrecognized runtime type _NSRange=II
-------------------------------+--------------------------------------------
 Reporter:  cwdinfo@…          |       Owner:  lsansonetti@…        
     Type:  defect             |      Status:  new                  
 Priority:  blocker            |   Milestone:                       
Component:  MacRuby            |    Keywords:                       
-------------------------------+--------------------------------------------
 The following code worked under earlier builds of MacRuby and oddly, on
 32-bit Snowy.

 {{{
   def control(control, textView: view, completions: completions,
 forPartialWordRange: range, indexOfSelectedItem: index)
     puts "called completions #{range}"
     target = view.textStorage.string[range.location, range.length]
     completion_list_for(target, Strings::AutocompletionsFor[:keywords])
   end
 }}}

 Now, it is called as the delegate method, but generates the console error:

 {{{
 2009-10-19 15:09:43.595 IStockCocoa[8362:a0f] unrecognized runtime type
 `{_NSRange=II}'
 }}}

 Further info:

 {{{
 $ macruby -v
 MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
 }}}

 MacOS 10.6.1

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



More information about the MacRuby-devel mailing list