Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/SWTTreeItem.d @ 11:a329f9c3d66d
Ported dwt.internal.cocoa.SWT* again
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 22 Aug 2008 15:39:51 +0200 |
parents | 380af2bdd8e5 |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
2:354c569b57a9 | 11:a329f9c3d66d |
---|---|
11 * Port to the D Programming language: | 11 * Port to the D Programming language: |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | 12 * Jacob Carlborg <jacob.carlborg@gmail.com> |
13 *******************************************************************************/ | 13 *******************************************************************************/ |
14 module dwt.internal.cocoa.SWTTreeItem; | 14 module dwt.internal.cocoa.SWTTreeItem; |
15 | 15 |
16 import dwt.dwthelper.utils; | 16 import dwt.internal.cocoa.NSInteger; |
17 import dwt.internal.cocoa.NSObject; | 17 import dwt.internal.cocoa.NSObject; |
18 | 18 |
19 public class DWTTreeItem : NSObject { | 19 public class SWTTreeItem : NSObject { |
20 | 20 |
21 public int tag () { | 21 public NSInteger tag () { |
22 return OS.objc_msgSend(id, OS.sel_tag); | 22 return cast(NSInteger) OS.objc_msgSend(id, OS.sel_tag); |
23 } | 23 } |
24 | 24 |
25 public void setTag (int tag) { | 25 public void setTag (NSInteger tag) { |
26 OS.objc_msgSend(id, OS.sel_setTag_1, tag); | 26 OS.objc_msgSend(id, OS.sel_setTag_1, tag); |
27 } | 27 } |
28 } | 28 } |