diff dwt/internal/cocoa/NSWorkspace.d @ 121:e1c48e37e0f5

Ported dwt.program.Program
author Jacob Carlborg <doob@me.com>
date Wed, 31 Dec 2008 16:50:37 +0100
parents d8635bb48c7c
children 2e671fa40eec
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSWorkspace.d	Wed Dec 31 16:16:40 2008 +0100
+++ b/dwt/internal/cocoa/NSWorkspace.d	Wed Dec 31 16:50:37 2008 +0100
@@ -59,7 +59,7 @@
 }
 
 public bool getInfoForFile(NSString fullPath, ref objc.id appName, ref objc.id type) {
-    return OS.objc_msgSend_bool(this.id, OS.sel_getInfoForFile_application_type_, fullPath !is null ? fullPath.id : null, appName, type);
+    return OS.objc_msgSend_bool(this.id, OS.sel_getInfoForFile_application_type_, fullPath !is null ? fullPath.id : null, &appName, &type);
 }
 
 public NSImage iconForFile(NSString fullPath) {