Mercurial > projects > dstep
comparison dstep/foundation/NSJavaSetup.d @ 14:89f3c3ef1fd2
Added the Foundation framework
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 15:23:15 +0200 |
parents | |
children | 19885b43130e |
comparison
equal
deleted
inserted
replaced
13:4f583f7e242e | 14:89f3c3ef1fd2 |
---|---|
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; | |
15 import dstep.objc.objc : id; | |
16 | |
17 bool NSJavaNeedsVirtualMachine (NSDictionary plist) | |
18 { | |
19 return Bridge.invokeObjcFunction!(bool, bindings.NSJavaNeedsVirtualMachine, NSDictionary)(plist); | |
20 } | |
21 | |
22 bool NSJavaProvidesClasses (NSDictionary plist) | |
23 { | |
24 return Bridge.invokeObjcFunction!(bool, bindings.NSJavaProvidesClasses, NSDictionary)(plist); | |
25 } | |
26 | |
27 bool NSJavaNeedsToLoadClasses (NSDictionary plist) | |
28 { | |
29 return Bridge.invokeObjcFunction!(bool, bindings.NSJavaNeedsToLoadClasses, NSDictionary)(plist); | |
30 } | |
31 | |
32 Object NSJavaSetup (NSDictionary plist) | |
33 { | |
34 return Bridge.invokeObjcFunction!(Object, bindings.NSJavaSetup, NSDictionary)(plist); | |
35 } | |
36 | |
37 Object NSJavaSetupVirtualMachine () | |
38 { | |
39 return Bridge.invokeObjcFunction!(Object, bindings.NSJavaSetupVirtualMachine); | |
40 } | |
41 | |
42 Object NSJavaObjectNamedInPath (NSString name, NSArray path) | |
43 { | |
44 return Bridge.invokeObjcFunction!(Object, bindings.NSJavaObjectNamedInPath, NSString, NSArray)(name, path); | |
45 } | |
46 | |
47 NSArray NSJavaClassesFromPath (NSArray path, NSArray wanted, bool usesyscl, id* vm) | |
48 { | |
49 return Bridge.invokeObjcFunction!(NSArray, bindings.NSJavaClassesFromPath, NSArray, NSArray, bool, id*)(path, wanted, usesyscl, vm); | |
50 } | |
51 | |
52 NSArray NSJavaClassesForBundle (NSBundle bundle, bool usesyscl, id* vm) | |
53 { | |
54 return Bridge.invokeObjcFunction!(NSArray, bindings.NSJavaClassesForBundle, NSBundle, bool, id*)(bundle, usesyscl, vm); | |
55 } | |
56 | |
57 Object NSJavaBundleSetup (NSBundle bundle, NSDictionary plist) | |
58 { | |
59 return Bridge.invokeObjcFunction!(Object, bindings.NSJavaBundleSetup, NSBundle, NSDictionary)(bundle, plist); | |
60 } | |
61 | |
62 void NSJavaBundleCleanup (NSBundle bundle, NSDictionary plist) | |
63 { | |
64 return Bridge.invokeObjcFunction!(void, bindings.NSJavaBundleCleanup, NSBundle, NSDictionary)(bundle, plist); | |
65 } | |
66 |