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
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to