comparison dwt/internal/cocoa/NSWorkspace.d @ 122:2e671fa40eec

Ported dwt.dnd, dwt.opengl, dwt.printing and dwt.program
author Jacob Carlborg <doob@me.com>
date Wed, 31 Dec 2008 21:01:13 +0100
parents e1c48e37e0f5
children 63a09873578e
comparison
equal deleted inserted replaced
121:e1c48e37e0f5 122:2e671fa40eec
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, int /*long*/ identifiers) { 87 public bool openURLs(NSArray urls, NSString bundleIdentifier, NSWorkspaceLaunchOptions options, NSAppleEventDescriptor descriptor, 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);