comparison dwt/internal/cocoa/NSCollectionViewItem.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
33 super(id); 33 super(id);
34 } 34 }
35 35
36 public NSCollectionView collectionView () 36 public NSCollectionView collectionView ()
37 { 37 {
38 objc.id result = OS.objc_msgSend(this.id, OS.sel_collectionView); 38 objc.id result = OS.objc_msgSend(this.id_, OS.sel_collectionView);
39 return result !is null ? new NSCollectionView(result) : null; 39 return result !is null ? new NSCollectionView(result) : null;
40 } 40 }
41 41
42 public bool isSelected () 42 public bool isSelected ()
43 { 43 {
44 return OS.objc_msgSend(this.id, OS.sel_isSelected) !is null; 44 return OS.objc_msgSend(this.id_, OS.sel_isSelected) !is null;
45 } 45 }
46 46
47 public id representedObject () 47 public id representedObject ()
48 { 48 {
49 objc.id result = OS.objc_msgSend(this.id, OS.sel_representedObject); 49 objc.id result = OS.objc_msgSend(this.id_, OS.sel_representedObject);
50 return result !is null ? new id(result) : null; 50 return result !is null ? new id(result) : null;
51 } 51 }
52 52
53 public void setRepresentedObject (id object) 53 public void setRepresentedObject (id object)
54 { 54 {
55 OS.objc_msgSend(this.id, OS.sel_setRepresentedObject_1, object !is null ? object.id : null); 55 OS.objc_msgSend(this.id_, OS.sel_setRepresentedObject_1, object !is null ? object.id_ : null);
56 } 56 }
57 57
58 public void setSelected (bool flag) 58 public void setSelected (bool flag)
59 { 59 {
60 OS.objc_msgSend(this.id, OS.sel_setSelected_1, flag); 60 OS.objc_msgSend(this.id_, OS.sel_setSelected_1, flag);
61 } 61 }
62 62
63 public void setView (NSView view) 63 public void setView (NSView view)
64 { 64 {
65 OS.objc_msgSend(this.id, OS.sel_setView_1, view !is null ? view.id : null); 65 OS.objc_msgSend(this.id_, OS.sel_setView_1, view !is null ? view.id_ : null);
66 } 66 }
67 67
68 public NSView view () 68 public NSView view ()
69 { 69 {
70 objc.id result = OS.objc_msgSend(this.id, OS.sel_view); 70 objc.id result = OS.objc_msgSend(this.id_, OS.sel_view);
71 return result !is null ? new NSView(result) : null; 71 return result !is null ? new NSView(result) : null;
72 } 72 }
73 73
74 } 74 }