[MacRuby] #1317: Coordinates of CLLocation are not accesible
MacRuby
ruby-noreply at macosforge.org
Sun Jun 5 09:43:58 PDT 2011
#1317: Coordinates of CLLocation are not accesible
------------------------------------+---------------------------------------
Reporter: fdiazgarrido@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
------------------------------------+---------------------------------------
The coordinate attribute returns a Boxed object whose attributes cant be
accessed
#!/usr/bin/env macruby
framework 'CoreLocation'
def locationManager(lm, didUpdateToLocation: to, fromLocation: from)
p to.coordinate.longitude
end
manager = CLLocationManager.alloc.init
manager.delegate = self
manager.startUpdatingLocation
NSRunLoop.currentRunLoop.runUntilDate(NSDate.distantFuture)
--
Ticket URL: <http://www.macruby.org/trac/ticket/1317>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list