Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSMessagePortNameServer.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 NSPort portForName_ (NSString name) | 36 public NSPort portForName_ (NSString name) |
37 { | 37 { |
38 objc.id result = OS.objc_msgSend(this.id, OS.sel_portForName_1, name !is null ? name.id : null); | 38 objc.id result = OS.objc_msgSend(this.id_, OS.sel_portForName_1, name !is null ? name.id_ : null); |
39 return result !is null ? new NSPort(result) : null; | 39 return result !is null ? new NSPort(result) : null; |
40 } | 40 } |
41 | 41 |
42 public NSPort portForName_host_ (NSString name, NSString host) | 42 public NSPort portForName_host_ (NSString name, NSString host) |
43 { | 43 { |
44 objc.id result = OS.objc_msgSend(this.id, OS.sel_portForName_1host_1, name !is null ? name.id : null, host !is null ? host.id : null); | 44 objc.id result = OS.objc_msgSend(this.id_, OS.sel_portForName_1host_1, name !is null ? name.id_ : null, host !is null ? host.id_ : null); |
45 return result !is null ? new NSPort(result) : null; | 45 return result !is null ? new NSPort(result) : null; |
46 } | 46 } |
47 | 47 |
48 public static id sharedInstance () | 48 public static id sharedInstance () |
49 { | 49 { |