comparison dstep/foundation/NSURL.d @ 15:7ff919f595d5

Added the Foundation framework, again
author Jacob Carlborg <doob@me.com>
date Mon, 03 Aug 2009 15:31:48 +0200
parents 89f3c3ef1fd2
children 19885b43130e
comparison
equal deleted inserted replaced
14:89f3c3ef1fd2 15:7ff919f595d5
139 return invokeObjcSelf!(NSString, "relativeString"); 139 return invokeObjcSelf!(NSString, "relativeString");
140 } 140 }
141 141
142 NSURL baseURL () 142 NSURL baseURL ()
143 { 143 {
144 id result = invokeObjcSelf!(id, "baseURL"return result is this.objcObject ? this : (result !is null ? new NSURL(result) : null); } 144 id result = invokeObjcSelf!(id, "baseURL");
145 return result is this.objcObject ? this : (result !is null ? new NSURL(result) : null);
146 }
145 147
146 NSURL absoluteURL () 148 NSURL absoluteURL ()
147 { 149 {
148 id result = invokeObjcSelf!(id, "absoluteURL"return result is this.objcObject ? this : (result !is null ? new NSURL(result) : null); } 150 id result = invokeObjcSelf!(id, "absoluteURL");
151 return result is this.objcObject ? this : (result !is null ? new NSURL(result) : null);
152 }
149 153
150 NSString scheme () 154 NSString scheme ()
151 { 155 {
152 return invokeObjcSelf!(NSString, "scheme"); 156 return invokeObjcSelf!(NSString, "scheme");
153 } 157 }
207 return invokeObjcSelf!(bool, "isFileURL"); 211 return invokeObjcSelf!(bool, "isFileURL");
208 } 212 }
209 213
210 NSURL standardizedURL () 214 NSURL standardizedURL ()
211 { 215 {
212 id result = invokeObjcSelf!(id, "standardizedURL"return result is this.objcObject ? this : (result !is null ? new NSURL(result) : null); } 216 id result = invokeObjcSelf!(id, "standardizedURL");
217 return result is this.objcObject ? this : (result !is null ? new NSURL(result) : null);
218 }
213 219
214 void encodeWithCoder (NSCoder aCoder) 220 void encodeWithCoder (NSCoder aCoder)
215 { 221 {
216 return invokeObjcSelf!(void, "encodeWithCoder:", NSCoder)(aCoder); 222 return invokeObjcSelf!(void, "encodeWithCoder:", NSCoder)(aCoder);
217 } 223 }