Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSURLResponse.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 |
---|---|
34 super(id); | 34 super(id); |
35 } | 35 } |
36 | 36 |
37 public NSString MIMEType () | 37 public NSString MIMEType () |
38 { | 38 { |
39 objc.id result = OS.objc_msgSend(this.id, OS.sel_MIMEType); | 39 objc.id result = OS.objc_msgSend(this.id_, OS.sel_MIMEType); |
40 return result !is null ? new NSString(result) : null; | 40 return result !is null ? new NSString(result) : null; |
41 } | 41 } |
42 | 42 |
43 public NSURL URL () | 43 public NSURL URL () |
44 { | 44 { |
45 objc.id result = OS.objc_msgSend(this.id, OS.sel_URL); | 45 objc.id result = OS.objc_msgSend(this.id_, OS.sel_URL); |
46 return result !is null ? new NSURL(result) : null; | 46 return result !is null ? new NSURL(result) : null; |
47 } | 47 } |
48 | 48 |
49 public long expectedContentLength () | 49 public long expectedContentLength () |
50 { | 50 { |
51 return cast(long) OS.objc_msgSend(this.id, OS.sel_expectedContentLength); | 51 return cast(long) OS.objc_msgSend(this.id_, OS.sel_expectedContentLength); |
52 } | 52 } |
53 | 53 |
54 public id initWithURL (NSURL URL, NSString MIMEType, NSInteger length, NSString name) | 54 public id initWithURL (NSURL URL, NSString MIMEType, NSInteger length, NSString name) |
55 { | 55 { |
56 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithURL_1MIMEType_1expectedContentLength_1textEncodingName_1, | 56 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithURL_1MIMEType_1expectedContentLength_1textEncodingName_1, |
57 URL !is null ? URL.id : null, MIMEType !is null ? MIMEType.id : null, length, name !is null ? name.id : null); | 57 URL !is null ? URL.id_ : null, MIMEType !is null ? MIMEType.id_ : null, length, name !is null ? name.id_ : null); |
58 return result !is null ? new id(result) : null; | 58 return result !is null ? new id(result) : null; |
59 } | 59 } |
60 | 60 |
61 public NSString suggestedFilename () | 61 public NSString suggestedFilename () |
62 { | 62 { |
63 objc.id result = OS.objc_msgSend(this.id, OS.sel_suggestedFilename); | 63 objc.id result = OS.objc_msgSend(this.id_, OS.sel_suggestedFilename); |
64 return result !is null ? new NSString(result) : null; | 64 return result !is null ? new NSString(result) : null; |
65 } | 65 } |
66 | 66 |
67 public NSString textEncodingName () | 67 public NSString textEncodingName () |
68 { | 68 { |
69 objc.id result = OS.objc_msgSend(this.id, OS.sel_textEncodingName); | 69 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textEncodingName); |
70 return result !is null ? new NSString(result) : null; | 70 return result !is null ? new NSString(result) : null; |
71 } | 71 } |
72 | 72 |
73 } | 73 } |