Mercurial > projects > dstep
annotate dstep/foundation/NSJavaSetup.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 | 89f3c3ef1fd2 |
children |
rev | line source |
---|---|
14 | 1 /** |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Aug 3, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.foundation.NSJavaSetup; | |
8 | |
9 import dstep.foundation.NSArray; | |
10 import dstep.foundation.NSBundle; | |
11 import dstep.foundation.NSDictionary; | |
12 import dstep.foundation.NSObject; | |
13 import dstep.foundation.NSString; | |
14 import dstep.objc.bridge.Bridge; | |
16
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
15 import dstep.objc.objc; |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
16 import bindings = dstep.foundation.NSJavaSetup_bindings; |
14 | 17 |
18 bool NSJavaNeedsVirtualMachine (NSDictionary plist) | |
19 { | |
20 return Bridge.invokeObjcFunction!(bool, bindings.NSJavaNeedsVirtualMachine, NSDictionary)(plist); | |
21 } | |
22 | |
23 bool NSJavaProvidesClasses (NSDictionary plist) | |
24 { | |
25 return Bridge.invokeObjcFunction!(bool, bindings.NSJavaProvidesClasses, NSDictionary)(plist); | |
26 } | |
27 | |
28 bool NSJavaNeedsToLoadClasses (NSDictionary plist) | |
29 { | |
30 return Bridge.invokeObjcFunction!(bool, bindings.NSJavaNeedsToLoadClasses, NSDictionary)(plist); | |
31 } | |
32 | |
33 Object NSJavaSetup (NSDictionary plist) | |
34 { | |
35 return Bridge.invokeObjcFunction!(Object, bindings.NSJavaSetup, NSDictionary)(plist); | |
36 } | |
37 | |
38 Object NSJavaSetupVirtualMachine () | |
39 { | |
40 return Bridge.invokeObjcFunction!(Object, bindings.NSJavaSetupVirtualMachine); | |
41 } | |
42 | |
43 Object NSJavaObjectNamedInPath (NSString name, NSArray path) | |
44 { | |
45 return Bridge.invokeObjcFunction!(Object, bindings.NSJavaObjectNamedInPath, NSString, NSArray)(name, path); | |
46 } | |
47 | |
48 NSArray NSJavaClassesFromPath (NSArray path, NSArray wanted, bool usesyscl, id* vm) | |
49 { | |
50 return Bridge.invokeObjcFunction!(NSArray, bindings.NSJavaClassesFromPath, NSArray, NSArray, bool, id*)(path, wanted, usesyscl, vm); | |
51 } | |
52 | |
53 NSArray NSJavaClassesForBundle (NSBundle bundle, bool usesyscl, id* vm) | |
54 { | |
55 return Bridge.invokeObjcFunction!(NSArray, bindings.NSJavaClassesForBundle, NSBundle, bool, id*)(bundle, usesyscl, vm); | |
56 } | |
57 | |
58 Object NSJavaBundleSetup (NSBundle bundle, NSDictionary plist) | |
59 { | |
60 return Bridge.invokeObjcFunction!(Object, bindings.NSJavaBundleSetup, NSBundle, NSDictionary)(bundle, plist); | |
61 } | |
62 | |
63 void NSJavaBundleCleanup (NSBundle bundle, NSDictionary plist) | |
64 { | |
65 return Bridge.invokeObjcFunction!(void, bindings.NSJavaBundleCleanup, NSBundle, NSDictionary)(bundle, plist); | |
66 } | |
67 |