Mercurial > projects > dstep
comparison dstep/foundation/NSIndexPath.d @ 15:7ff919f595d5
Added the Foundation framework, again
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 15:31:48 +0200 |
parents | 89f3c3ef1fd2 |
children | 19885b43130e |
comparison
equal
deleted
inserted
replaced
14:89f3c3ef1fd2 | 15:7ff919f595d5 |
---|---|
56 dObject = this; | 56 dObject = this; |
57 } | 57 } |
58 | 58 |
59 NSIndexPath indexPathByAddingIndex (NSUInteger index) | 59 NSIndexPath indexPathByAddingIndex (NSUInteger index) |
60 { | 60 { |
61 id result = invokeObjcSelf!(id, "indexPathByAddingIndex:", NSUInteger)(indexreturn result is this.objcObject ? this : (result !is null ? new NSIndexPath(result) : null); } | 61 id result = invokeObjcSelf!(id, "indexPathByAddingIndex:", NSUInteger)(index); |
62 return result is this.objcObject ? this : (result !is null ? new NSIndexPath(result) : null); | |
63 } | |
62 | 64 |
63 NSIndexPath indexPathByRemovingLastIndex () | 65 NSIndexPath indexPathByRemovingLastIndex () |
64 { | 66 { |
65 id result = invokeObjcSelf!(id, "indexPathByRemovingLastIndex"return result is this.objcObject ? this : (result !is null ? new NSIndexPath(result) : null); } | 67 id result = invokeObjcSelf!(id, "indexPathByRemovingLastIndex"); |
68 return result is this.objcObject ? this : (result !is null ? new NSIndexPath(result) : null); | |
69 } | |
66 | 70 |
67 NSUInteger indexAtPosition (NSUInteger position) | 71 NSUInteger indexAtPosition (NSUInteger position) |
68 { | 72 { |
69 return invokeObjcSelf!(NSUInteger, "indexAtPosition:", NSUInteger)(position); | 73 return invokeObjcSelf!(NSUInteger, "indexAtPosition:", NSUInteger)(position); |
70 } | 74 } |