comparison dstep/foundation/NSURLCredential.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
42 dObject = this; 42 dObject = this;
43 } 43 }
44 44
45 static NSURLCredential credentialWithUser (NSString user, NSString password, uint persistence) 45 static NSURLCredential credentialWithUser (NSString user, NSString password, uint persistence)
46 { 46 {
47 return invokeObjcSelfClass!(NSURLCredential, "credentialWithUser:password:persistence:", NSString, NSString, uint)(user, password, persistencereturn result is this.objcObject ? this : (result !is null ? new NSURLCredential(result) : null); } 47 return invokeObjcSelfClass!(NSURLCredential, "credentialWithUser:password:persistence:", NSString, NSString, uint)(user, password, persistence);
48 }
48 49
49 NSString user () 50 NSString user ()
50 { 51 {
51 return invokeObjcSelf!(NSString, "user"); 52 return invokeObjcSelf!(NSString, "user");
52 } 53 }