Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/SWTWindowDelegate.d @ 37:642f460a0908
Fixed a lot of compile errors, a "hello world" app compiles now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 10 Oct 2008 12:29:48 +0200 |
parents | 7d135fe0caf2 |
children | d8635bb48c7c |
comparison
equal
deleted
inserted
replaced
36:db5a898b2119 | 37:642f460a0908 |
---|---|
13 *******************************************************************************/ | 13 *******************************************************************************/ |
14 module dwt.internal.cocoa.SWTWindowDelegate; | 14 module dwt.internal.cocoa.SWTWindowDelegate; |
15 | 15 |
16 import dwt.internal.cocoa.NSInteger; | 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 objc = dwt.internal.objc.runtime; | 19 import objc = dwt.internal.objc.runtime; |
19 | 20 |
20 public class SWTWindowDelegate : NSObject { | 21 public class SWTWindowDelegate : NSObject { |
21 | 22 |
22 public this () { | 23 public this () { |
26 public this (objc.id id) { | 27 public this (objc.id id) { |
27 super(id); | 28 super(id); |
28 } | 29 } |
29 | 30 |
30 public NSInteger tag () { | 31 public NSInteger tag () { |
31 return cast(NSInteger) 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 (NSInteger 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 } |