Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSOperationQueue.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/NSOperationQueue.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSOperationQueue.d Tue Aug 19 17:35:17 2008 +0200 @@ -13,8 +13,10 @@ *******************************************************************************/ module dwt.internal.cocoa.NSOperationQueue; +import dwt.internal.cocoa.NSArray; import dwt.internal.cocoa.NSInteger; import dwt.internal.cocoa.NSObject; +import dwt.internal.cocoa.NSOperation; import dwt.internal.cocoa.OS; import objc = dwt.internal.objc.runtime; @@ -33,43 +35,43 @@ public void addOperation (NSOperation op) { - OS.objc_msgSend(this.id, OS.sel_addOperation_1, op !is null ? op.id : null); + OS.objc_msgSend(this.id_, OS.sel_addOperation_1, op !is null ? op.id_ : null); } public void cancelAllOperations () { - OS.objc_msgSend(this.id, OS.sel_cancelAllOperations); + OS.objc_msgSend(this.id_, OS.sel_cancelAllOperations); } public bool isSuspended () { - return OS.objc_msgSend(this.id, OS.sel_isSuspended) !is null; + return OS.objc_msgSend(this.id_, OS.sel_isSuspended) !is null; } public NSInteger maxConcurrentOperationCount () { - return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_maxConcurrentOperationCount); + return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_maxConcurrentOperationCount); } public NSArray operations () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_operations); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_operations); return result !is null ? new NSArray(result) : null; } public void setMaxConcurrentOperationCount (NSInteger cnt) { - OS.objc_msgSend(this.id, OS.sel_setMaxConcurrentOperationCount_1, cnt); + OS.objc_msgSend(this.id_, OS.sel_setMaxConcurrentOperationCount_1, cnt); } public void setSuspended (bool b) { - OS.objc_msgSend(this.id, OS.sel_setSuspended_1, b); + OS.objc_msgSend(this.id_, OS.sel_setSuspended_1, b); } public void waitUntilAllOperationsAreFinished () { - OS.objc_msgSend(this.id, OS.sel_waitUntilAllOperationsAreFinished); + OS.objc_msgSend(this.id_, OS.sel_waitUntilAllOperationsAreFinished); } }