Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSDistributedLock.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/NSDistributedLock.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSDistributedLock.d Tue Aug 19 17:35:17 2008 +0200 @@ -34,34 +34,34 @@ public void breakLock () { - OS.objc_msgSend(this.id, OS.sel_breakLock); + OS.objc_msgSend(this.id_, OS.sel_breakLock); } public id initWithPath (NSString path) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithPath_1, path !is null ? path.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithPath_1, path !is null ? path.id_ : null); return result !is null ? new id(result) : null; } public NSDate lockDate () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_lockDate); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_lockDate); return result !is null ? new NSDate(result) : null; } public static NSDistributedLock lockWithPath (NSString path) { - objc.id result = OS.objc_msgSend(OS.class_NSDistributedLock, OS.sel_lockWithPath_1, path !is null ? path.id : null); + objc.id result = OS.objc_msgSend(OS.class_NSDistributedLock, OS.sel_lockWithPath_1, path !is null ? path.id_ : null); return result !is null ? new NSDistributedLock(result) : null; } public bool tryLock () { - return OS.objc_msgSend(this.id, OS.sel_tryLock) !is null; + return OS.objc_msgSend(this.id_, OS.sel_tryLock) !is null; } public void unlock () { - OS.objc_msgSend(this.id, OS.sel_unlock); + OS.objc_msgSend(this.id_, OS.sel_unlock); } }