Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSScriptObjectSpecifier.d @ 1:8b48be5454ce
The internal cocoa classes compile now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 17:35:17 +0200 |
parents | 380af2bdd8e5 |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
0:380af2bdd8e5 | 1:8b48be5454ce |
---|---|
35 super(id); | 35 super(id); |
36 } | 36 } |
37 | 37 |
38 public NSScriptObjectSpecifier childSpecifier () | 38 public NSScriptObjectSpecifier childSpecifier () |
39 { | 39 { |
40 objc.id result = OS.objc_msgSend(this.id, OS.sel_childSpecifier); | 40 objc.id result = OS.objc_msgSend(this.id_, OS.sel_childSpecifier); |
41 return result is this.id ? this : (result !is null ? new NSScriptObjectSpecifier(result) : null); | 41 return result is this.id_ ? this : (result !is null ? new NSScriptObjectSpecifier(result) : null); |
42 } | 42 } |
43 | 43 |
44 public NSScriptClassDescription containerClassDescription () | 44 public NSScriptClassDescription containerClassDescription () |
45 { | 45 { |
46 objc.id result = OS.objc_msgSend(this.id, OS.sel_containerClassDescription); | 46 objc.id result = OS.objc_msgSend(this.id_, OS.sel_containerClassDescription); |
47 return result !is null ? new NSScriptClassDescription(result) : null; | 47 return result !is null ? new NSScriptClassDescription(result) : null; |
48 } | 48 } |
49 | 49 |
50 public bool containerIsObjectBeingTested () | 50 public bool containerIsObjectBeingTested () |
51 { | 51 { |
52 return OS.objc_msgSend(this.id, OS.sel_containerIsObjectBeingTested) !is null; | 52 return OS.objc_msgSend(this.id_, OS.sel_containerIsObjectBeingTested) !is null; |
53 } | 53 } |
54 | 54 |
55 public bool containerIsRangeContainerObject () | 55 public bool containerIsRangeContainerObject () |
56 { | 56 { |
57 return OS.objc_msgSend(this.id, OS.sel_containerIsRangeContainerObject) !is null; | 57 return OS.objc_msgSend(this.id_, OS.sel_containerIsRangeContainerObject) !is null; |
58 } | 58 } |
59 | 59 |
60 public NSScriptObjectSpecifier containerSpecifier () | 60 public NSScriptObjectSpecifier containerSpecifier () |
61 { | 61 { |
62 objc.id result = OS.objc_msgSend(this.id, OS.sel_containerSpecifier); | 62 objc.id result = OS.objc_msgSend(this.id_, OS.sel_containerSpecifier); |
63 return result is this.id ? this : (result !is null ? new NSScriptObjectSpecifier(result) : null); | 63 return result is this.id_ ? this : (result !is null ? new NSScriptObjectSpecifier(result) : null); |
64 } | 64 } |
65 | 65 |
66 public NSAppleEventDescriptor descriptor () | 66 public NSAppleEventDescriptor descriptor () |
67 { | 67 { |
68 objc.id result = OS.objc_msgSend(this.id, OS.sel_descriptor); | 68 objc.id result = OS.objc_msgSend(this.id_, OS.sel_descriptor); |
69 return result !is null ? new NSAppleEventDescriptor(result) : null; | 69 return result !is null ? new NSAppleEventDescriptor(result) : null; |
70 } | 70 } |
71 | 71 |
72 public NSInteger evaluationErrorNumber () | 72 public NSInteger evaluationErrorNumber () |
73 { | 73 { |
74 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_evaluationErrorNumber); | 74 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_evaluationErrorNumber); |
75 } | 75 } |
76 | 76 |
77 public NSScriptObjectSpecifier evaluationErrorSpecifier () | 77 public NSScriptObjectSpecifier evaluationErrorSpecifier () |
78 { | 78 { |
79 objc.id result = OS.objc_msgSend(this.id, OS.sel_evaluationErrorSpecifier); | 79 objc.id result = OS.objc_msgSend(this.id_, OS.sel_evaluationErrorSpecifier); |
80 return result is this.id ? this : (result !is null ? new NSScriptObjectSpecifier(result) : null); | 80 return result is this.id_ ? this : (result !is null ? new NSScriptObjectSpecifier(result) : null); |
81 } | 81 } |
82 | 82 |
83 public NSInteger* indicesOfObjectsByEvaluatingWithContainer (id container, NSInteger* count) | 83 public NSInteger* indicesOfObjectsByEvaluatingWithContainer (id container, NSInteger* count) |
84 { | 84 { |
85 return cast(NSInteger*) OS.objc_msgSend(this.id, OS.sel_indicesOfObjectsByEvaluatingWithContainer_1count_1, container !is null ? container.id : null, count); | 85 return cast(NSInteger*) OS.objc_msgSend(this.id_, OS.sel_indicesOfObjectsByEvaluatingWithContainer_1count_1, container !is null ? container.id_ : null, count); |
86 } | 86 } |
87 | 87 |
88 public id initWithContainerClassDescription (NSScriptClassDescription classDesc, NSScriptObjectSpecifier container, NSString property) | 88 public id initWithContainerClassDescription (NSScriptClassDescription classDesc, NSScriptObjectSpecifier container, NSString property) |
89 { | 89 { |
90 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithContainerClassDescription_1containerSpecifier_1key_1, | 90 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithContainerClassDescription_1containerSpecifier_1key_1, |
91 classDesc !is null ? classDesc.id : null, container !is null ? container.id : null, property !is null ? property.id : null); | 91 classDesc !is null ? classDesc.id_ : null, container !is null ? container.id_ : null, property !is null ? property.id_ : null); |
92 return result !is null ? new id(result) : null; | 92 return result !is null ? new id(result) : null; |
93 } | 93 } |
94 | 94 |
95 public id initWithContainerSpecifier (NSScriptObjectSpecifier container, NSString property) | 95 public id initWithContainerSpecifier (NSScriptObjectSpecifier container, NSString property) |
96 { | 96 { |
97 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithContainerSpecifier_1key_1, container !is null ? container.id : null, | 97 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithContainerSpecifier_1key_1, container !is null ? container.id_ : null, |
98 property !is null ? property.id : null); | 98 property !is null ? property.id_ : null); |
99 return result !is null ? new id(result) : null; | 99 return result !is null ? new id(result) : null; |
100 } | 100 } |
101 | 101 |
102 public NSString key () | 102 public NSString key () |
103 { | 103 { |
104 objc.id result = OS.objc_msgSend(this.id, OS.sel_key); | 104 objc.id result = OS.objc_msgSend(this.id_, OS.sel_key); |
105 return result !is null ? new NSString(result) : null; | 105 return result !is null ? new NSString(result) : null; |
106 } | 106 } |
107 | 107 |
108 public NSScriptClassDescription keyClassDescription () | 108 public NSScriptClassDescription keyClassDescription () |
109 { | 109 { |
110 objc.id result = OS.objc_msgSend(this.id, OS.sel_keyClassDescription); | 110 objc.id result = OS.objc_msgSend(this.id_, OS.sel_keyClassDescription); |
111 return result !is null ? new NSScriptClassDescription(result) : null; | 111 return result !is null ? new NSScriptClassDescription(result) : null; |
112 } | 112 } |
113 | 113 |
114 public static NSScriptObjectSpecifier objectSpecifierWithDescriptor (NSAppleEventDescriptor descriptor) | 114 public static NSScriptObjectSpecifier objectSpecifierWithDescriptor (NSAppleEventDescriptor descriptor) |
115 { | 115 { |
116 objc.id result = OS.objc_msgSend(OS.class_NSScriptObjectSpecifier, OS.sel_objectSpecifierWithDescriptor_1, | 116 objc.id result = OS.objc_msgSend(OS.class_NSScriptObjectSpecifier, OS.sel_objectSpecifierWithDescriptor_1, |
117 descriptor !is null ? descriptor.id : null); | 117 descriptor !is null ? descriptor.id_ : null); |
118 return result !is null ? new NSScriptObjectSpecifier(result) : null; | 118 return result !is null ? new NSScriptObjectSpecifier(result) : null; |
119 } | 119 } |
120 | 120 |
121 public id objectsByEvaluatingSpecifier () | 121 public id objectsByEvaluatingSpecifier () |
122 { | 122 { |
123 objc.id result = OS.objc_msgSend(this.id, OS.sel_objectsByEvaluatingSpecifier); | 123 objc.id result = OS.objc_msgSend(this.id_, OS.sel_objectsByEvaluatingSpecifier); |
124 return result !is null ? new id(result) : null; | 124 return result !is null ? new id(result) : null; |
125 } | 125 } |
126 | 126 |
127 public id objectsByEvaluatingWithContainers (id containers) | 127 public id objectsByEvaluatingWithContainers (id containers) |
128 { | 128 { |
129 objc.id result = OS.objc_msgSend(this.id, OS.sel_objectsByEvaluatingWithContainers_1, containers !is null ? containers.id : null); | 129 objc.id result = OS.objc_msgSend(this.id_, OS.sel_objectsByEvaluatingWithContainers_1, containers !is null ? containers.id_ : null); |
130 return result !is null ? new id(result) : null; | 130 return result !is null ? new id(result) : null; |
131 } | 131 } |
132 | 132 |
133 public void setChildSpecifier (NSScriptObjectSpecifier child) | 133 public void setChildSpecifier (NSScriptObjectSpecifier child) |
134 { | 134 { |
135 OS.objc_msgSend(this.id, OS.sel_setChildSpecifier_1, child !is null ? child.id : null); | 135 OS.objc_msgSend(this.id_, OS.sel_setChildSpecifier_1, child !is null ? child.id_ : null); |
136 } | 136 } |
137 | 137 |
138 public void setContainerClassDescription (NSScriptClassDescription classDesc) | 138 public void setContainerClassDescription (NSScriptClassDescription classDesc) |
139 { | 139 { |
140 OS.objc_msgSend(this.id, OS.sel_setContainerClassDescription_1, classDesc !is null ? classDesc.id : null); | 140 OS.objc_msgSend(this.id_, OS.sel_setContainerClassDescription_1, classDesc !is null ? classDesc.id_ : null); |
141 } | 141 } |
142 | 142 |
143 public void setContainerIsObjectBeingTested (bool flag) | 143 public void setContainerIsObjectBeingTested (bool flag) |
144 { | 144 { |
145 OS.objc_msgSend(this.id, OS.sel_setContainerIsObjectBeingTested_1, flag); | 145 OS.objc_msgSend(this.id_, OS.sel_setContainerIsObjectBeingTested_1, flag); |
146 } | 146 } |
147 | 147 |
148 public void setContainerIsRangeContainerObject (bool flag) | 148 public void setContainerIsRangeContainerObject (bool flag) |
149 { | 149 { |
150 OS.objc_msgSend(this.id, OS.sel_setContainerIsRangeContainerObject_1, flag); | 150 OS.objc_msgSend(this.id_, OS.sel_setContainerIsRangeContainerObject_1, flag); |
151 } | 151 } |
152 | 152 |
153 public void setContainerSpecifier (NSScriptObjectSpecifier subRef) | 153 public void setContainerSpecifier (NSScriptObjectSpecifier subRef) |
154 { | 154 { |
155 OS.objc_msgSend(this.id, OS.sel_setContainerSpecifier_1, subRef !is null ? subRef.id : null); | 155 OS.objc_msgSend(this.id_, OS.sel_setContainerSpecifier_1, subRef !is null ? subRef.id_ : null); |
156 } | 156 } |
157 | 157 |
158 public void setEvaluationErrorNumber (NSInteger error) | 158 public void setEvaluationErrorNumber (NSInteger error) |
159 { | 159 { |
160 OS.objc_msgSend(this.id, OS.sel_setEvaluationErrorNumber_1, error); | 160 OS.objc_msgSend(this.id_, OS.sel_setEvaluationErrorNumber_1, error); |
161 } | 161 } |
162 | 162 |
163 public void setKey (NSString key) | 163 public void setKey (NSString key) |
164 { | 164 { |
165 OS.objc_msgSend(this.id, OS.sel_setKey_1, key !is null ? key.id : null); | 165 OS.objc_msgSend(this.id_, OS.sel_setKey_1, key !is null ? key.id_ : null); |
166 } | 166 } |
167 | 167 |
168 } | 168 } |