Mercurial > projects > dwt-mac
diff 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 |
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSViewController.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSViewController.d Tue Aug 19 17:35:17 2008 +0200 @@ -36,74 +36,74 @@ public bool commitEditing () { - return OS.objc_msgSend(this.id, OS.sel_commitEditing) !is null; + return OS.objc_msgSend(this.id_, OS.sel_commitEditing) !is null; } public void commitEditingWithDelegate (id delegatee, objc.SEL didCommitSelector, void* contextInfo) { - OS.objc_msgSend(this.id, OS.sel_commitEditingWithDelegate_1didCommitSelector_1contextInfo_1, delegatee !is null ? delegatee.id : null, + OS.objc_msgSend(this.id_, OS.sel_commitEditingWithDelegate_1didCommitSelector_1contextInfo_1, delegatee !is null ? delegatee.id_ : null, didCommitSelector, contextInfo); } public void discardEditing () { - OS.objc_msgSend(this.id, OS.sel_discardEditing); + OS.objc_msgSend(this.id_, OS.sel_discardEditing); } public id initWithNibName (NSString nibNameOrNil, NSBundle nibBundleOrNil) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithNibName_1bundle_1, nibNameOrNil !is null ? nibNameOrNil.id : null, - nibBundleOrNil !is null ? nibBundleOrNil.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithNibName_1bundle_1, nibNameOrNil !is null ? nibNameOrNil.id_ : null, + nibBundleOrNil !is null ? nibBundleOrNil.id_ : null); return result !is null ? new id(result) : null; } public void loadView () { - OS.objc_msgSend(this.id, OS.sel_loadView); + OS.objc_msgSend(this.id_, OS.sel_loadView); } public NSBundle nibBundle () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_nibBundle); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_nibBundle); return result !is null ? new NSBundle(result) : null; } public NSString nibName () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_nibName); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_nibName); return result !is null ? new NSString(result) : null; } public id representedObject () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_representedObject); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_representedObject); return result !is null ? new id(result) : null; } public void setRepresentedObject (id representedObject) { - OS.objc_msgSend(this.id, OS.sel_setRepresentedObject_1, representedObject !is null ? representedObject.id : null); + OS.objc_msgSend(this.id_, OS.sel_setRepresentedObject_1, representedObject !is null ? representedObject.id_ : null); } public void setTitle (NSString title) { - OS.objc_msgSend(this.id, OS.sel_setTitle_1, title !is null ? title.id : null); + OS.objc_msgSend(this.id_, OS.sel_setTitle_1, title !is null ? title.id_ : null); } public void setView (NSView view) { - OS.objc_msgSend(this.id, OS.sel_setView_1, view !is null ? view.id : null); + OS.objc_msgSend(this.id_, OS.sel_setView_1, view !is null ? view.id_ : null); } public NSString title () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_title); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_title); return result !is null ? new NSString(result) : null; } public NSView view () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_view); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_view); return result !is null ? new NSView(result) : null; }