comparison 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
comparison
equal deleted inserted replaced
120:7046ca5a6d77 121:e1c48e37e0f5
57 objc.id result = OS.objc_msgSend(this.id, OS.sel_fullPathForApplication_, appName !is null ? appName.id : null); 57 objc.id result = OS.objc_msgSend(this.id, OS.sel_fullPathForApplication_, appName !is null ? appName.id : null);
58 return result !is null ? new NSString(result) : null; 58 return result !is null ? new NSString(result) : null;
59 } 59 }
60 60
61 public bool getInfoForFile(NSString fullPath, ref objc.id appName, ref objc.id type) { 61 public bool getInfoForFile(NSString fullPath, ref objc.id appName, ref objc.id type) {
62 return OS.objc_msgSend_bool(this.id, OS.sel_getInfoForFile_application_type_, fullPath !is null ? fullPath.id : null, appName, type); 62 return OS.objc_msgSend_bool(this.id, OS.sel_getInfoForFile_application_type_, fullPath !is null ? fullPath.id : null, &appName, &type);
63 } 63 }
64 64
65 public NSImage iconForFile(NSString fullPath) { 65 public NSImage iconForFile(NSString fullPath) {
66 objc.id result = OS.objc_msgSend(this.id, OS.sel_iconForFile_, fullPath !is null ? fullPath.id : null); 66 objc.id result = OS.objc_msgSend(this.id, OS.sel_iconForFile_, fullPath !is null ? fullPath.id : null);
67 return result !is null ? new NSImage(result) : null; 67 return result !is null ? new NSImage(result) : null;