Vision

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 23 13:28:14 PDT 2015


On 2015-10-23 20:44, Steven Schveighoffer wrote:

> I think this would look better as the official example!

I wanted to keep it simple.

> Question is, what does objc_lookUpClass actually return? I'm assuming
> id. I still don't know what that is in D, void*?

No. In the (Objective-)C header files "objc_lookUpClass" returns 
"Class", which is defined like below:

alias Class = objc_class*

struct objc_class
{
     Class isa;
}

In my example it's an Objective-C interface defined in D. Everything is 
in the example, even links to the Objective-C runtime reference.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list