Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSWorkspace.d @ 123:63a09873578e
Fixed compile errors
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 15 Jan 2009 23:08:54 +0100 |
parents | 2e671fa40eec |
children | 64712e72cb16 |
comparison
equal
deleted
inserted
replaced
122:2e671fa40eec | 123:63a09873578e |
---|---|
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; |
82 | 82 |
83 public bool openURL(NSURL url) { | 83 public bool openURL(NSURL url) { |
84 return OS.objc_msgSend_bool(this.id, OS.sel_openURL_, url !is null ? url.id : null); | 84 return OS.objc_msgSend_bool(this.id, OS.sel_openURL_, url !is null ? url.id : null); |
85 } | 85 } |
86 | 86 |
87 public bool openURLs(NSArray urls, NSString bundleIdentifier, NSWorkspaceLaunchOptions options, NSAppleEventDescriptor descriptor, objc.id* identifiers) { | 87 public bool openURLs(NSArray urls, NSString bundleIdentifier, NSWorkspaceLaunchOptions options, NSAppleEventDescriptor descriptor, /*NSArray** */ objc.id** identifiers) { |
88 return OS.objc_msgSend_bool(this.id, OS.sel_openURLs_withAppBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifiers_, urls !is null ? urls.id : null, bundleIdentifier !is null ? bundleIdentifier.id : null, options, descriptor !is null ? descriptor.id : null, identifiers); | 88 return OS.objc_msgSend_bool(this.id, OS.sel_openURLs_withAppBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifiers_, urls !is null ? urls.id : null, bundleIdentifier !is null ? bundleIdentifier.id : null, options, descriptor !is null ? descriptor.id : null, identifiers); |
89 } | 89 } |
90 | 90 |
91 public static NSWorkspace sharedWorkspace() { | 91 public static NSWorkspace sharedWorkspace() { |
92 objc.id result = OS.objc_msgSend(OS.class_NSWorkspace, OS.sel_sharedWorkspace); | 92 objc.id result = OS.objc_msgSend(OS.class_NSWorkspace, OS.sel_sharedWorkspace); |