Mercurial > projects > dwt-mac
diff 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 |
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSMachPort.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSMachPort.d Tue Aug 19 17:35:17 2008 +0200 @@ -36,19 +36,19 @@ public id initWithMachPort_ (uint machPort) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithMachPort_1, machPort); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithMachPort_1, machPort); return result !is null ? new id(result) : null; } public id initWithMachPort_options_ (uint machPort, NSUInteger f) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithMachPort_1options_1, machPort, f); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithMachPort_1options_1, machPort, f); return result !is null ? new id(result) : null; } public uint machPort () { - return OS.objc_msgSend(this.id, OS.sel_machPort); + return cast(uint) OS.objc_msgSend(this.id_, OS.sel_machPort); } public static NSPort static_portWithMachPort_ (uint machPort) @@ -65,12 +65,12 @@ public void removeFromRunLoop (NSRunLoop runLoop, NSString mode) { - OS.objc_msgSend(this.id, OS.sel_removeFromRunLoop_1forMode_1, runLoop !is null ? runLoop.id : null, mode !is null ? mode.id : null); + OS.objc_msgSend(this.id_, OS.sel_removeFromRunLoop_1forMode_1, runLoop !is null ? runLoop.id_ : null, mode !is null ? mode.id_ : null); } public void scheduleInRunLoop (NSRunLoop runLoop, NSString mode) { - OS.objc_msgSend(this.id, OS.sel_scheduleInRunLoop_1forMode_1, runLoop !is null ? runLoop.id : null, mode !is null ? mode.id : null); + OS.objc_msgSend(this.id_, OS.sel_scheduleInRunLoop_1forMode_1, runLoop !is null ? runLoop.id_ : null, mode !is null ? mode.id_ : null); } }