#1340: Troubles casting a Pointer from void* to something useful ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by lsansonetti@…): Sadly that's the only use case that MacRuby's Pointer class does not support. This API is declared as returning a `void *' type, which MacRuby assumes it a pointer to *something*, however here it returns a direct reference to a CFString. The #cast! method allows you to change the type of the object being pointed to, but here what you would need instead is a way to cast the Pointer object itself to something else. Pointer#to_object maybe? -- Ticket URL: <http://www.macruby.org/trac/ticket/1340#comment:1> MacRuby <http://macruby.org/>