[MacRuby] #641: Using CLLocationCoordinate2D structs raises TypeError
#641: Using CLLocationCoordinate2D structs raises TypeError ------------------------------+--------------------------------------------- Reporter: thomas@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: struct, typeerror, corelocation ------------------------------+--------------------------------------------- When using the CoreLocation framework coordinates are expressed in a C-struct CLLocationCoordinate2D as defined in CLLocation.h of the CoreLocation framework. Using these coordinates in macruby (tested with 0.5 release and 0.6 trunk) results in a TypeError: {{{ unrecognized runtime type `{?=dd}' (TypeError) }}} The following is a minimal program to demonstrate the bug: {{{ #!/usr/bin/env macruby framework 'CoreLocation' def locationManager(lm, didUpdateToLocation: to, fromLocation: from) p to.coordinate end manager = CLLocationManager.alloc.init manager.delegate = self manager.startUpdatingLocation NSRunLoop.currentRunLoop.runUntilDate(NSDate.distantFuture) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/641> MacRuby <http://macruby.org/>
#641: Using CLLocationCoordinate2D structs raises TypeError ---------------------------------------------+------------------------------ Reporter: thomas@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: duplicate Keywords: struct, typeerror, corelocation | ---------------------------------------------+------------------------------ Changes (by martinlagardette@…): * status: new => closed * resolution: => duplicate Comment: Hi, thanks for reporting! This is a duplicate of #533. The problem is that CoreLocation is not yet covered by BridgeSupport, and thus, MacRuby is not aware of the specific CL types. -- Ticket URL: <http://www.macruby.org/trac/ticket/641#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby