comparison dwt/internal/cocoa/NSMachPort.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 id initWithMachPort_ (uint machPort) 37 public id initWithMachPort_ (uint machPort)
38 { 38 {
39 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithMachPort_1, machPort); 39 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithMachPort_1, machPort);
40 return result !is null ? new id(result) : null; 40 return result !is null ? new id(result) : null;
41 } 41 }
42 42
43 public id initWithMachPort_options_ (uint machPort, NSUInteger f) 43 public id initWithMachPort_options_ (uint machPort, NSUInteger f)
44 { 44 {
45 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithMachPort_1options_1, machPort, f); 45 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithMachPort_1options_1, machPort, f);
46 return result !is null ? new id(result) : null; 46 return result !is null ? new id(result) : null;
47 } 47 }
48 48
49 public uint machPort () 49 public uint machPort ()
50 { 50 {
51 return OS.objc_msgSend(this.id, OS.sel_machPort); 51 return cast(uint) OS.objc_msgSend(this.id_, OS.sel_machPort);
52 } 52 }
53 53
54 public static NSPort static_portWithMachPort_ (uint machPort) 54 public static NSPort static_portWithMachPort_ (uint machPort)
55 { 55 {
56 objc.id result = OS.objc_msgSend(OS.class_NSMachPort, OS.sel_portWithMachPort_1, machPort); 56 objc.id result = OS.objc_msgSend(OS.class_NSMachPort, OS.sel_portWithMachPort_1, machPort);
63 return result !is null ? new NSPort(result) : null; 63 return result !is null ? new NSPort(result) : null;
64 } 64 }
65 65
66 public void removeFromRunLoop (NSRunLoop runLoop, NSString mode) 66 public void removeFromRunLoop (NSRunLoop runLoop, NSString mode)
67 { 67 {
68 OS.objc_msgSend(this.id, OS.sel_removeFromRunLoop_1forMode_1, runLoop !is null ? runLoop.id : null, mode !is null ? mode.id : null); 68 OS.objc_msgSend(this.id_, OS.sel_removeFromRunLoop_1forMode_1, runLoop !is null ? runLoop.id_ : null, mode !is null ? mode.id_ : null);
69 } 69 }
70 70
71 public void scheduleInRunLoop (NSRunLoop runLoop, NSString mode) 71 public void scheduleInRunLoop (NSRunLoop runLoop, NSString mode)
72 { 72 {
73 OS.objc_msgSend(this.id, OS.sel_scheduleInRunLoop_1forMode_1, runLoop !is null ? runLoop.id : null, mode !is null ? mode.id : null); 73 OS.objc_msgSend(this.id_, OS.sel_scheduleInRunLoop_1forMode_1, runLoop !is null ? runLoop.id_ : null, mode !is null ? mode.id_ : null);
74 } 74 }
75 75
76 } 76 }