Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSXMLDTDNode.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 |
---|---|
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | 12 * Jacob Carlborg <jacob.carlborg@gmail.com> |
13 *******************************************************************************/ | 13 *******************************************************************************/ |
14 module dwt.internal.cocoa.NSXMLDTDNode; | 14 module dwt.internal.cocoa.NSXMLDTDNode; |
15 | 15 |
16 import dwt.internal.cocoa.id; | 16 import dwt.internal.cocoa.id; |
17 import dwt.internal.cocoa.NSInteger; | |
17 import dwt.internal.cocoa.NSString; | 18 import dwt.internal.cocoa.NSString; |
18 import dwt.internal.cocoa.NSXMLNode; | 19 import dwt.internal.cocoa.NSXMLNode; |
19 import dwt.internal.cocoa.OS; | 20 import dwt.internal.cocoa.OS; |
20 import objc = dwt.internal.objc.runtime; | 21 import objc = dwt.internal.objc.runtime; |
21 | 22 |
85 super(id); | 86 super(id); |
86 } | 87 } |
87 | 88 |
88 public NSXMLDTDNodeKind DTDKind () | 89 public NSXMLDTDNodeKind DTDKind () |
89 { | 90 { |
90 return cast(NSXMLDTDNodeKind) OS.objc_msgSend(this.id, OS.sel_DTDKind); | 91 return cast(NSXMLDTDNodeKind) OS.objc_msgSend(this.id_, OS.sel_DTDKind); |
91 } | 92 } |
92 | 93 |
93 public id initWithXMLString (NSString string) | 94 public id initWithXMLString (NSString string) |
94 { | 95 { |
95 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithXMLString_1, string !is null ? string.id : null); | 96 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithXMLString_1, string !is null ? string.id_ : null); |
96 return result !is null ? new id(result) : null; | 97 return result !is null ? new id(result) : null; |
97 } | 98 } |
98 | 99 |
99 public bool isExternal () | 100 public bool isExternal () |
100 { | 101 { |
101 return OS.objc_msgSend(this.id, OS.sel_isExternal) !is null; | 102 return OS.objc_msgSend(this.id_, OS.sel_isExternal) !is null; |
102 } | 103 } |
103 | 104 |
104 public NSString notationName () | 105 public NSString notationName () |
105 { | 106 { |
106 objc.id result = OS.objc_msgSend(this.id, OS.sel_notationName); | 107 objc.id result = OS.objc_msgSend(this.id_, OS.sel_notationName); |
107 return result !is null ? new NSString(result) : null; | 108 return result !is null ? new NSString(result) : null; |
108 } | 109 } |
109 | 110 |
110 public NSString publicID () | 111 public NSString publicID () |
111 { | 112 { |
112 objc.id result = OS.objc_msgSend(this.id, OS.sel_publicID); | 113 objc.id result = OS.objc_msgSend(this.id_, OS.sel_publicID); |
113 return result !is null ? new NSString(result) : null; | 114 return result !is null ? new NSString(result) : null; |
114 } | 115 } |
115 | 116 |
116 public void setDTDKind (NSXMLDTDNodeKind kind) | 117 public void setDTDKind (NSXMLDTDNodeKind kind) |
117 { | 118 { |
118 OS.objc_msgSend(this.id, OS.sel_setDTDKind_1, kind); | 119 OS.objc_msgSend(this.id_, OS.sel_setDTDKind_1, kind); |
119 } | 120 } |
120 | 121 |
121 public void setNotationName (NSString notationName) | 122 public void setNotationName (NSString notationName) |
122 { | 123 { |
123 OS.objc_msgSend(this.id, OS.sel_setNotationName_1, notationName !is null ? notationName.id : null); | 124 OS.objc_msgSend(this.id_, OS.sel_setNotationName_1, notationName !is null ? notationName.id_ : null); |
124 } | 125 } |
125 | 126 |
126 public void setPublicID (NSString publicID) | 127 public void setPublicID (NSString publicID) |
127 { | 128 { |
128 OS.objc_msgSend(this.id, OS.sel_setPublicID_1, publicID !is null ? publicID.id : null); | 129 OS.objc_msgSend(this.id_, OS.sel_setPublicID_1, publicID !is null ? publicID.id_ : null); |
129 } | 130 } |
130 | 131 |
131 public void setSystemID (NSString systemID) | 132 public void setSystemID (NSString systemID) |
132 { | 133 { |
133 OS.objc_msgSend(this.id, OS.sel_setSystemID_1, systemID !is null ? systemID.id : null); | 134 OS.objc_msgSend(this.id_, OS.sel_setSystemID_1, systemID !is null ? systemID.id_ : null); |
134 } | 135 } |
135 | 136 |
136 public NSString systemID () | 137 public NSString systemID () |
137 { | 138 { |
138 objc.id result = OS.objc_msgSend(this.id, OS.sel_systemID); | 139 objc.id result = OS.objc_msgSend(this.id_, OS.sel_systemID); |
139 return result !is null ? new NSString(result) : null; | 140 return result !is null ? new NSString(result) : null; |
140 } | 141 } |
141 | 142 |
142 } | 143 } |