Michel Fortin wrote:
Another approach is my D/Objective-C bridge:
<http://michelf.com/projects/d-objc-bridge/>, which allows you to write
a bridged class like below. It needs D1 and is not multithreaded, only
can do classes (no protocols, no categories for now), but it works quite
well for what it does.
<snip>
/** Open a new window and put it on the center of the screen. */
void openWindow(Object sender) {
}
// Objective-C binding for IB actions.
mixin IBAction!(openWindow);
mixin IBAction!(openWebsite);
Off topic, but this would be a good place for user-defined attributes.
Then you could write something like:
@IBAction void openWindow(Object sender) {}