Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSURLCredentialStorage.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 |
---|---|
33 super(id); | 33 super(id); |
34 } | 34 } |
35 | 35 |
36 public NSDictionary allCredentials () | 36 public NSDictionary allCredentials () |
37 { | 37 { |
38 objc.id result = OS.objc_msgSend(this.id, OS.sel_allCredentials); | 38 objc.id result = OS.objc_msgSend(this.id_, OS.sel_allCredentials); |
39 return result !is null ? new NSDictionary(result) : null; | 39 return result !is null ? new NSDictionary(result) : null; |
40 } | 40 } |
41 | 41 |
42 public NSDictionary credentialsForProtectionSpace (NSURLProtectionSpace space) | 42 public NSDictionary credentialsForProtectionSpace (NSURLProtectionSpace space) |
43 { | 43 { |
44 objc.id result = OS.objc_msgSend(this.id, OS.sel_credentialsForProtectionSpace_1, space !is null ? space.id : null); | 44 objc.id result = OS.objc_msgSend(this.id_, OS.sel_credentialsForProtectionSpace_1, space !is null ? space.id_ : null); |
45 return result !is null ? new NSDictionary(result) : null; | 45 return result !is null ? new NSDictionary(result) : null; |
46 } | 46 } |
47 | 47 |
48 public NSURLCredential defaultCredentialForProtectionSpace (NSURLProtectionSpace space) | 48 public NSURLCredential defaultCredentialForProtectionSpace (NSURLProtectionSpace space) |
49 { | 49 { |
50 objc.id result = OS.objc_msgSend(this.id, OS.sel_defaultCredentialForProtectionSpace_1, space !is null ? space.id : null); | 50 objc.id result = OS.objc_msgSend(this.id_, OS.sel_defaultCredentialForProtectionSpace_1, space !is null ? space.id_ : null); |
51 return result !is null ? new NSURLCredential(result) : null; | 51 return result !is null ? new NSURLCredential(result) : null; |
52 } | 52 } |
53 | 53 |
54 public void removeCredential (NSURLCredential credential, NSURLProtectionSpace space) | 54 public void removeCredential (NSURLCredential credential, NSURLProtectionSpace space) |
55 { | 55 { |
56 OS.objc_msgSend(this.id, OS.sel_removeCredential_1forProtectionSpace_1, credential !is null ? credential.id : null, | 56 OS.objc_msgSend(this.id_, OS.sel_removeCredential_1forProtectionSpace_1, credential !is null ? credential.id_ : null, |
57 space !is null ? space.id : null); | 57 space !is null ? space.id_ : null); |
58 } | 58 } |
59 | 59 |
60 public void setCredential (NSURLCredential credential, NSURLProtectionSpace space) | 60 public void setCredential (NSURLCredential credential, NSURLProtectionSpace space) |
61 { | 61 { |
62 OS.objc_msgSend(this.id, OS.sel_setCredential_1forProtectionSpace_1, credential !is null ? credential.id : null, | 62 OS.objc_msgSend(this.id_, OS.sel_setCredential_1forProtectionSpace_1, credential !is null ? credential.id_ : null, |
63 space !is null ? space.id : null); | 63 space !is null ? space.id_ : null); |
64 } | 64 } |
65 | 65 |
66 public void setDefaultCredential (NSURLCredential credential, NSURLProtectionSpace space) | 66 public void setDefaultCredential (NSURLCredential credential, NSURLProtectionSpace space) |
67 { | 67 { |
68 OS.objc_msgSend(this.id, OS.sel_setDefaultCredential_1forProtectionSpace_1, credential !is null ? credential.id : null, | 68 OS.objc_msgSend(this.id_, OS.sel_setDefaultCredential_1forProtectionSpace_1, credential !is null ? credential.id_ : null, |
69 space !is null ? space.id : null); | 69 space !is null ? space.id_ : null); |
70 } | 70 } |
71 | 71 |
72 public static NSURLCredentialStorage sharedCredentialStorage () | 72 public static NSURLCredentialStorage sharedCredentialStorage () |
73 { | 73 { |
74 objc.id result = OS.objc_msgSend(OS.class_NSURLCredentialStorage, OS.sel_sharedCredentialStorage); | 74 objc.id result = OS.objc_msgSend(OS.class_NSURLCredentialStorage, OS.sel_sharedCredentialStorage); |