Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSCachedImageRep.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/NSCachedImageRep.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSCachedImageRep.d Tue Aug 19 17:35:17 2008 +0200 @@ -35,26 +35,26 @@ public NSCachedImageRep initWithSize (NSSize size, objc.id depth, bool flag, bool alpha) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithSize_1depth_1separate_1alpha_1, size, depth, flag, alpha); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithSize_1depth_1separate_1alpha_1, size, depth, flag, alpha); return result !is null ? this : null; } public NSCachedImageRep initWithWindow (NSWindow win, NSRect rect) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithWindow_1rect_1, win !is null ? win.id : null, rect); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithWindow_1rect_1, win !is null ? win.id_ : null, rect); return result !is null ? this : null; } public NSRect rect () { NSRect result; - OS.objc_msgSend_stret(result, this.id, OS.sel_rect); + OS.objc_msgSend_stret(&result, this.id_, OS.sel_rect); return result; } public NSWindow window () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_window); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_window); return result !is null ? new NSWindow(result) : null; }