comparison dwt/internal/cocoa/NSViewController.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
34 super(id); 34 super(id);
35 } 35 }
36 36
37 public bool commitEditing () 37 public bool commitEditing ()
38 { 38 {
39 return OS.objc_msgSend(this.id, OS.sel_commitEditing) !is null; 39 return OS.objc_msgSend(this.id_, OS.sel_commitEditing) !is null;
40 } 40 }
41 41
42 public void commitEditingWithDelegate (id delegatee, objc.SEL didCommitSelector, void* contextInfo) 42 public void commitEditingWithDelegate (id delegatee, objc.SEL didCommitSelector, void* contextInfo)
43 { 43 {
44 OS.objc_msgSend(this.id, OS.sel_commitEditingWithDelegate_1didCommitSelector_1contextInfo_1, delegatee !is null ? delegatee.id : null, 44 OS.objc_msgSend(this.id_, OS.sel_commitEditingWithDelegate_1didCommitSelector_1contextInfo_1, delegatee !is null ? delegatee.id_ : null,
45 didCommitSelector, contextInfo); 45 didCommitSelector, contextInfo);
46 } 46 }
47 47
48 public void discardEditing () 48 public void discardEditing ()
49 { 49 {
50 OS.objc_msgSend(this.id, OS.sel_discardEditing); 50 OS.objc_msgSend(this.id_, OS.sel_discardEditing);
51 } 51 }
52 52
53 public id initWithNibName (NSString nibNameOrNil, NSBundle nibBundleOrNil) 53 public id initWithNibName (NSString nibNameOrNil, NSBundle nibBundleOrNil)
54 { 54 {
55 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithNibName_1bundle_1, nibNameOrNil !is null ? nibNameOrNil.id : null, 55 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithNibName_1bundle_1, nibNameOrNil !is null ? nibNameOrNil.id_ : null,
56 nibBundleOrNil !is null ? nibBundleOrNil.id : null); 56 nibBundleOrNil !is null ? nibBundleOrNil.id_ : null);
57 return result !is null ? new id(result) : null; 57 return result !is null ? new id(result) : null;
58 } 58 }
59 59
60 public void loadView () 60 public void loadView ()
61 { 61 {
62 OS.objc_msgSend(this.id, OS.sel_loadView); 62 OS.objc_msgSend(this.id_, OS.sel_loadView);
63 } 63 }
64 64
65 public NSBundle nibBundle () 65 public NSBundle nibBundle ()
66 { 66 {
67 objc.id result = OS.objc_msgSend(this.id, OS.sel_nibBundle); 67 objc.id result = OS.objc_msgSend(this.id_, OS.sel_nibBundle);
68 return result !is null ? new NSBundle(result) : null; 68 return result !is null ? new NSBundle(result) : null;
69 } 69 }
70 70
71 public NSString nibName () 71 public NSString nibName ()
72 { 72 {
73 objc.id result = OS.objc_msgSend(this.id, OS.sel_nibName); 73 objc.id result = OS.objc_msgSend(this.id_, OS.sel_nibName);
74 return result !is null ? new NSString(result) : null; 74 return result !is null ? new NSString(result) : null;
75 } 75 }
76 76
77 public id representedObject () 77 public id representedObject ()
78 { 78 {
79 objc.id result = OS.objc_msgSend(this.id, OS.sel_representedObject); 79 objc.id result = OS.objc_msgSend(this.id_, OS.sel_representedObject);
80 return result !is null ? new id(result) : null; 80 return result !is null ? new id(result) : null;
81 } 81 }
82 82
83 public void setRepresentedObject (id representedObject) 83 public void setRepresentedObject (id representedObject)
84 { 84 {
85 OS.objc_msgSend(this.id, OS.sel_setRepresentedObject_1, representedObject !is null ? representedObject.id : null); 85 OS.objc_msgSend(this.id_, OS.sel_setRepresentedObject_1, representedObject !is null ? representedObject.id_ : null);
86 } 86 }
87 87
88 public void setTitle (NSString title) 88 public void setTitle (NSString title)
89 { 89 {
90 OS.objc_msgSend(this.id, OS.sel_setTitle_1, title !is null ? title.id : null); 90 OS.objc_msgSend(this.id_, OS.sel_setTitle_1, title !is null ? title.id_ : null);
91 } 91 }
92 92
93 public void setView (NSView view) 93 public void setView (NSView view)
94 { 94 {
95 OS.objc_msgSend(this.id, OS.sel_setView_1, view !is null ? view.id : null); 95 OS.objc_msgSend(this.id_, OS.sel_setView_1, view !is null ? view.id_ : null);
96 } 96 }
97 97
98 public NSString title () 98 public NSString title ()
99 { 99 {
100 objc.id result = OS.objc_msgSend(this.id, OS.sel_title); 100 objc.id result = OS.objc_msgSend(this.id_, OS.sel_title);
101 return result !is null ? new NSString(result) : null; 101 return result !is null ? new NSString(result) : null;
102 } 102 }
103 103
104 public NSView view () 104 public NSView view ()
105 { 105 {
106 objc.id result = OS.objc_msgSend(this.id, OS.sel_view); 106 objc.id result = OS.objc_msgSend(this.id_, OS.sel_view);
107 return result !is null ? new NSView(result) : null; 107 return result !is null ? new NSView(result) : null;
108 } 108 }
109 109
110 } 110 }