How The Bridge Works

Introduction

To be able to understand how the bridge works it is a good idea to first look more closely on how Objective-C works under the hood. The Objective-C runtime provides a bunch of C functions that basically allows you to do everything you can do in Objective-C. Creating classes, instances, call methods an so on. Since D can call C functions the bridge uses these functions to interact with Objective-C.

Suggested further readings:

Continue Reading

Create an Objective-C instance
Call an Objective-C method form D
Call a D method form Objective-C