Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSPortNameServer.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 bool registerPort (NSPort port, NSString name) | 48 public bool registerPort (NSPort port, NSString name) |
49 { | 49 { |
50 return OS.objc_msgSend(this.id, OS.sel_registerPort_1name_1, port !is null ? port.id : null, name !is null ? name.id : null) !is null; | 50 return OS.objc_msgSend(this.id_, OS.sel_registerPort_1name_1, port !is null ? port.id_ : null, name !is null ? name.id_ : null) !is null; |
51 } | 51 } |
52 | 52 |
53 public bool removePortForName (NSString name) | 53 public bool removePortForName (NSString name) |
54 { | 54 { |
55 return OS.objc_msgSend(this.id, OS.sel_removePortForName_1, name !is null ? name.id : null) !is null; | 55 return OS.objc_msgSend(this.id_, OS.sel_removePortForName_1, name !is null ? name.id_ : null) !is null; |
56 } | 56 } |
57 | 57 |
58 public static NSPortNameServer systemDefaultPortNameServer () | 58 public static NSPortNameServer systemDefaultPortNameServer () |
59 { | 59 { |
60 objc.id result = OS.objc_msgSend(OS.class_NSPortNameServer, OS.sel_systemDefaultPortNameServer); | 60 objc.id result = OS.objc_msgSend(OS.class_NSPortNameServer, OS.sel_systemDefaultPortNameServer); |