Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/SWTPanelDelegate.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 |
line wrap: on
line diff
--- a/dwt/internal/cocoa/SWTPanelDelegate.d Tue Aug 19 17:40:11 2008 +0200 +++ b/dwt/internal/cocoa/SWTPanelDelegate.d Fri Aug 22 15:39:51 2008 +0200 @@ -13,25 +13,26 @@ *******************************************************************************/ module dwt.internal.cocoa.SWTPanelDelegate; -import dwt.dwthelper.utils; +import dwt.internal.cocoa.NSInteger; import dwt.internal.cocoa.NSObject; import dwt.internal.cocoa.OS; +import objc = dwt.internal.objc.runtime; -public class DWTPanelDelegate : NSObject { +public class SWTPanelDelegate : NSObject { public this () { - super(0); + super(null); } - public this (int id) { + public this (objc.id id) { super(id); } - public int tag () { - return OS.objc_msgSend(id, OS.sel_tag); + public NSInteger tag () { + return cast(NSInteger) OS.objc_msgSend(id, OS.sel_tag); } - public void setTag (int tag) { + public void setTag (NSInteger tag) { OS.objc_msgSend(id, OS.sel_setTag_1, tag); }