Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSImage.d @ 60:62202ce0039f
Updated and fixed many modules to 3.514
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 22 Dec 2008 15:10:19 +0100 |
parents | d8635bb48c7c |
children |
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSImage.d Tue Dec 09 21:52:21 2008 +0100 +++ b/dwt/internal/cocoa/NSImage.d Mon Dec 22 15:10:19 2008 +0100 @@ -28,14 +28,6 @@ import dwt.internal.objc.cocoa.Cocoa; import objc = dwt.internal.objc.runtime; -enum NSImageCacheMode -{ - NSImageCacheDefault, - NSImageCacheAlways, - NSImageCacheBySize, - NSImageCacheNever -} - public class NSImage : NSObject { public this() { @@ -79,7 +71,7 @@ public cocoa.id initWithData(NSData data) { objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithData_, data !is null ? data.id : null); - return result !is null ? new id(result) : null; + return result !is null ? new cocoa.id(result) : null; } public NSImage initWithSize(NSSize aSize) { @@ -97,7 +89,7 @@ public NSSize size() { NSSize result = NSSize(); - OS.objc_msgSend_stret(result, this.id, OS.sel_size); + OS.objc_msgSend_stret(&result, this.id, OS.sel_size); return result; }