Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSIndexPath.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/NSIndexPath.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSIndexPath.d Tue Aug 19 17:35:17 2008 +0200 @@ -35,29 +35,29 @@ public NSComparisonResult compare (NSIndexPath otherObject) { - return OS.objc_msgSend(this.id, OS.sel_compare_1, otherObject !is null ? otherObject.id : null); + return cast(NSComparisonResult) OS.objc_msgSend(this.id_, OS.sel_compare_1, otherObject !is null ? otherObject.id_ : null); } public void getIndexes (NSUInteger* indexes) { - OS.objc_msgSend(this.id, OS.sel_getIndexes_1, indexes); + OS.objc_msgSend(this.id_, OS.sel_getIndexes_1, indexes); } public NSUInteger indexAtPosition (NSUInteger position) { - return OS.objc_msgSend(this.id, OS.sel_indexAtPosition_1, position); + return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_indexAtPosition_1, position); } public NSIndexPath indexPathByAddingIndex (NSUInteger index) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_indexPathByAddingIndex_1, index); - return result is this.id ? this : (result !is null ? new NSIndexPath(result) : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_indexPathByAddingIndex_1, index); + return result is this.id_ ? this : (result !is null ? new NSIndexPath(result) : null); } public NSIndexPath indexPathByRemovingLastIndex () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_indexPathByRemovingLastIndex); - return result is this.id ? this : (result !is null ? new NSIndexPath(result) : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_indexPathByRemovingLastIndex); + return result is this.id_ ? this : (result !is null ? new NSIndexPath(result) : null); } public static id indexPathWithIndex (NSUInteger index) @@ -74,19 +74,19 @@ public id initWithIndex (NSUInteger index) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithIndex_1, index); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithIndex_1, index); return result !is null ? new id(result) : null; } public id initWithIndexes (NSUInteger* indexes, NSUInteger length) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithIndexes_1length_1, indexes, length); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithIndexes_1length_1, indexes, length); return result !is null ? new id(result) : null; } public NSUInteger length () { - return OS.objc_msgSend(this.id, OS.sel_length); + return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_length); } }