comparison dstep/foundation/NSScriptExecutionContext.d @ 16:19885b43130e

Huge update, the bridge actually works now
author Jacob Carlborg <doob@me.com>
date Sun, 03 Jan 2010 22:06:11 +0100
parents 7ff919f595d5
children b9de51448c6b
comparison
equal deleted inserted replaced
15:7ff919f595d5 16:19885b43130e
7 module dstep.foundation.NSScriptExecutionContext; 7 module dstep.foundation.NSScriptExecutionContext;
8 8
9 import dstep.foundation.NSConnection; 9 import dstep.foundation.NSConnection;
10 import dstep.foundation.NSObject; 10 import dstep.foundation.NSObject;
11 import dstep.objc.bridge.Bridge; 11 import dstep.objc.bridge.Bridge;
12 import dstep.objc.objc : id; 12 import dstep.objc.objc;
13 13
14 class NSScriptExecutionContext : NSObject 14 class NSScriptExecutionContext : NSObject
15 { 15 {
16 mixin ObjcWrap; 16 mixin (ObjcWrap);
17
18 this ()
19 {
20 super(typeof(this).alloc.init.objcObject);
21 }
22
23 typeof(this) init ()
24 {
25 return invokeObjcSelf!(typeof(this), "init");
26 }
17 27
18 static NSScriptExecutionContext sharedScriptExecutionContext () 28 static NSScriptExecutionContext sharedScriptExecutionContext ()
19 { 29 {
20 return invokeObjcSelfClass!(NSScriptExecutionContext, "sharedScriptExecutionContext"); 30 return invokeObjcSuperClass!(NSScriptExecutionContext, "sharedScriptExecutionContext");
21 } 31 }
22 32
23 Object topLevelObject () 33 Object topLevelObject ()
24 { 34 {
25 return invokeObjcSelf!(Object, "topLevelObject"); 35 return invokeObjcSelf!(Object, "topLevelObject");