comparison 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
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.SWTPanelDelegate; 14 module dwt.internal.cocoa.SWTPanelDelegate;
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 import dwt.internal.cocoa.OS; 18 import dwt.internal.cocoa.OS;
19 import objc = dwt.internal.objc.runtime;
19 20
20 public class DWTPanelDelegate : NSObject { 21 public class SWTPanelDelegate : NSObject {
21 22
22 public this () { 23 public this () {
23 super(0); 24 super(null);
24 } 25 }
25 26
26 public this (int id) { 27 public this (objc.id id) {
27 super(id); 28 super(id);
28 } 29 }
29 30
30 public int tag () { 31 public NSInteger tag () {
31 return OS.objc_msgSend(id, OS.sel_tag); 32 return cast(NSInteger) OS.objc_msgSend(id, OS.sel_tag);
32 } 33 }
33 34
34 public void setTag (int tag) { 35 public void setTag (NSInteger tag) {
35 OS.objc_msgSend(id, OS.sel_setTag_1, tag); 36 OS.objc_msgSend(id, OS.sel_setTag_1, tag);
36 } 37 }
37 38
38 } 39 }