[MacRuby-devel] [MacRuby] #394: Unrecognized runtime type _NSRange=II
MacRuby
ruby-noreply at macosforge.org
Wed Oct 28 11:46:26 PDT 2009
#394: Unrecognized runtime type _NSRange=II
-------------------------------+--------------------------------------------
Reporter: cwdinfo@… | Owner: lsansonetti@…
Type: defect | Status: closed
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Resolution: fixed
Keywords: |
-------------------------------+--------------------------------------------
Comment(by lsansonetti@…):
As of r2908 I get the following output:
{{{
text field is arf
called completions #<NSRange:0x2003bcaa0> = 3 0
"{0, 3}"
}}}
For the following code:
{{{
def control(control, textView: view, completions: completions,
forPartialWordRange: range, indexOfSelectedItem: index)
puts "text field is #{@textField.stringValue}"
puts "called completions #{range} = #{range.length} #{range.location}"
p NSStringFromRange(range)
['foo', 'bar', 'foobar']
end
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/394#comment:12>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list