comparison dwt/internal/cocoa/NSMachBootstrapServer.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 NSPort servicePortWithName (NSString name) 53 public NSPort servicePortWithName (NSString name)
54 { 54 {
55 objc.id result = OS.objc_msgSend(this.id, OS.sel_servicePortWithName_1, name !is null ? name.id : null); 55 objc.id result = OS.objc_msgSend(this.id_, OS.sel_servicePortWithName_1, name !is null ? name.id_ : null);
56 return result !is null ? new NSPort(result) : null; 56 return result !is null ? new NSPort(result) : null;
57 } 57 }
58 58
59 public static id sharedInstance () 59 public static id sharedInstance ()
60 { 60 {