diff dstep/objc/bridge/Bridge.d @ 27:57371c29ef73 default tip

ObjcWrap is now automatically mixed in. Added support for building as a dylib with DMD.
author Jacob Carlborg <doob@me.com>
date Fri, 09 Apr 2010 23:00:22 +0200
parents b9de51448c6b
children
line wrap: on
line diff
--- a/dstep/objc/bridge/Bridge.d	Tue Apr 06 11:38:08 2010 +0200
+++ b/dstep/objc/bridge/Bridge.d	Fri Apr 09 23:00:22 2010 +0200
@@ -319,6 +319,8 @@
  * This will create a receiver method which will forward the call to $(D_PARAM method),
  * decapsulating arguments and encapsulating the return value as appropriate.
  * 
+ * Mixes in: ObjcWrap
+ * 
  * Examples:
  * ---
  * class AppController : NSObject
@@ -392,6 +394,9 @@
 		
 		/// The Objective-C method declaration for the binded method
 		ObjcMethodDeclaration!(__forwardVirtualCall, R, selector, ARGS) __objcMethodDeclaration;
+		
+		static if (!is(typeof(this.__objcClass)))
+			mixin ObjcWrap;
 	}
 }
 
@@ -516,6 +521,9 @@
 		
 		/// The Objective-C method declaration for the binded method
 		ObjcMethodDeclaration!(__forwardStaticCall, R, selector, ARGS) __objcClassMethodDeclaration;
+		
+		static if (is(typeof(this.__objcClass)))
+			mixin ObjcWrap;
 	}
 }