Mercurial > projects > dstep
comparison dstep/foundation/NSURLCredentialStorage.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 |
---|---|
29 { | 29 { |
30 mixin ObjcWrap; | 30 mixin ObjcWrap; |
31 | 31 |
32 static NSURLCredentialStorage sharedCredentialStorage () | 32 static NSURLCredentialStorage sharedCredentialStorage () |
33 { | 33 { |
34 return invokeObjcSelfClass!(NSURLCredentialStorage, "sharedCredentialStorage"return result is this.objcObject ? this : (result !is null ? new NSURLCredentialStorage(result) : null); } | 34 return invokeObjcSelfClass!(NSURLCredentialStorage, "sharedCredentialStorage"); |
35 } | |
35 | 36 |
36 NSDictionary credentialsForProtectionSpace (NSURLProtectionSpace space) | 37 NSDictionary credentialsForProtectionSpace (NSURLProtectionSpace space) |
37 { | 38 { |
38 return invokeObjcSelf!(NSDictionary, "credentialsForProtectionSpace:", NSURLProtectionSpace)(space); | 39 return invokeObjcSelf!(NSDictionary, "credentialsForProtectionSpace:", NSURLProtectionSpace)(space); |
39 } | 40 } |