Mercurial > projects > dstep
comparison dstep/coredata/NSPropertyDescription.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 | |
children | b9de51448c6b |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 25, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.coredata.NSPropertyDescription; | |
8 | |
9 import dstep.coredata.NSEntityDescription; | |
10 import dstep.foundation.NSArray; | |
11 import dstep.foundation.NSCoder; | |
12 import dstep.foundation.NSData; | |
13 import dstep.foundation.NSDictionary; | |
14 import dstep.foundation.NSObject; | |
15 import dstep.foundation.NSString; | |
16 import dstep.foundation.NSZone; | |
17 import dstep.objc.bridge.Bridge; | |
18 import dstep.objc.objc; | |
19 | |
20 class NSPropertyDescription : NSObject, INSCoding, INSCopying | |
21 { | |
22 mixin (ObjcWrap); | |
23 | |
24 NSEntityDescription entity () | |
25 { | |
26 return invokeObjcSelf!(NSEntityDescription, "entity"); | |
27 } | |
28 | |
29 NSString name () | |
30 { | |
31 return invokeObjcSelf!(NSString, "name"); | |
32 } | |
33 | |
34 void setName (NSString name) | |
35 { | |
36 return invokeObjcSelf!(void, "setName:", NSString)(name); | |
37 } | |
38 | |
39 bool isOptional () | |
40 { | |
41 return invokeObjcSelf!(bool, "isOptional"); | |
42 } | |
43 | |
44 void setOptional (bool flag) | |
45 { | |
46 return invokeObjcSelf!(void, "setOptional:", bool)(flag); | |
47 } | |
48 | |
49 bool isTransient () | |
50 { | |
51 return invokeObjcSelf!(bool, "isTransient"); | |
52 } | |
53 | |
54 void setTransient (bool flag) | |
55 { | |
56 return invokeObjcSelf!(void, "setTransient:", bool)(flag); | |
57 } | |
58 | |
59 NSArray validationPredicates () | |
60 { | |
61 return invokeObjcSelf!(NSArray, "validationPredicates"); | |
62 } | |
63 | |
64 NSArray validationWarnings () | |
65 { | |
66 return invokeObjcSelf!(NSArray, "validationWarnings"); | |
67 } | |
68 | |
69 void setValidationPredicates (NSArray validationPredicates, NSArray validationWarnings) | |
70 { | |
71 return invokeObjcSelf!(void, "setValidationPredicates:withValidationWarnings:", NSArray, NSArray)(validationPredicates, validationWarnings); | |
72 } | |
73 | |
74 NSDictionary userInfo () | |
75 { | |
76 return invokeObjcSelf!(NSDictionary, "userInfo"); | |
77 } | |
78 | |
79 void setUserInfo (NSDictionary dictionary) | |
80 { | |
81 return invokeObjcSelf!(void, "setUserInfo:", NSDictionary)(dictionary); | |
82 } | |
83 | |
84 bool isIndexed () | |
85 { | |
86 return invokeObjcSelf!(bool, "isIndexed"); | |
87 } | |
88 | |
89 void setIndexed (bool flag) | |
90 { | |
91 return invokeObjcSelf!(void, "setIndexed:", bool)(flag); | |
92 } | |
93 | |
94 NSData versionHash () | |
95 { | |
96 return invokeObjcSelf!(NSData, "versionHash"); | |
97 } | |
98 | |
99 NSString versionHashModifier () | |
100 { | |
101 return invokeObjcSelf!(NSString, "versionHashModifier"); | |
102 } | |
103 | |
104 void setVersionHashModifier (NSString modifierString) | |
105 { | |
106 return invokeObjcSelf!(void, "setVersionHashModifier:", NSString)(modifierString); | |
107 } | |
108 | |
109 void encodeWithCoder (NSCoder aCoder) | |
110 { | |
111 return invokeObjcSelf!(void, "encodeWithCoder:", NSCoder)(aCoder); | |
112 } | |
113 | |
114 typeof(this) initWithCoder (NSCoder aDecoder) | |
115 { | |
116 return invokeObjcSelf!(typeof(this), "initWithCoder:", NSCoder)(aDecoder); | |
117 } | |
118 | |
119 typeof(this) copyWithZone (NSZone* zone) | |
120 { | |
121 return invokeObjcSelf!(typeof(this), "copyWithZone:", NSZone*)(zone); | |
122 } | |
123 } | |
124 |