comparison dwt/internal/cocoa/NSLock.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
comparison
equal deleted inserted replaced
0:380af2bdd8e5 1:8b48be5454ce
32 super(id); 32 super(id);
33 } 33 }
34 34
35 public bool lockBeforeDate (NSDate limit) 35 public bool lockBeforeDate (NSDate limit)
36 { 36 {
37 return OS.objc_msgSend(this.id, OS.sel_lockBeforeDate_1, limit !is null ? limit.id : null) !is null; 37 return OS.objc_msgSend(this.id_, OS.sel_lockBeforeDate_1, limit !is null ? limit.id_ : null) !is null;
38 } 38 }
39 39
40 public NSString name () 40 public NSString name ()
41 { 41 {
42 objc.id result = OS.objc_msgSend(this.id, OS.sel_name); 42 objc.id result = OS.objc_msgSend(this.id_, OS.sel_name);
43 return result !is null ? new NSString(result) : null; 43 return result !is null ? new NSString(result) : null;
44 } 44 }
45 45
46 public void setName (NSString n) 46 public void setName (NSString n)
47 { 47 {
48 OS.objc_msgSend(this.id, OS.sel_setName_1, n !is null ? n.id : null); 48 OS.objc_msgSend(this.id_, OS.sel_setName_1, n !is null ? n.id_ : null);
49 } 49 }
50 50
51 public bool tryLock () 51 public bool tryLock ()
52 { 52 {
53 return OS.objc_msgSend(this.id, OS.sel_tryLock) !is null; 53 return OS.objc_msgSend(this.id_, OS.sel_tryLock) !is null;
54 } 54 }
55 55
56 } 56 }