[MacRuby-devel] CFRange (Boxed) elements not accessible
Paul Howson
paul-lists at tdgq.com.au
Sun May 30 18:19:09 PDT 2010
Hello Laurent and team,
The following code:
string_range = CTLineGetStringRange(line)
returns a CFRange, which is a C-structure with two elements: location and length.
Attempting to access:
string_range.location
results in the error message:
undefined method `location' for #<Boxed:0x200699fe0> (NoMethodError)
(I think a similar error related to CLLocation has been discussed here before.)
Is there a way to get around this problem?
-----------------
Paul Howson
Warwick Qld Australia
More information about the MacRuby-devel
mailing list