mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Source/NSWorkspace.m: ([-launchAppWithBundleIdentifier:]) add dummy implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28678 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
430e6ab1bc
commit
2896ed8473
3 changed files with 28 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-09-14 Hans Baier <hansfbaier@googlemail.com>
|
||||
|
||||
* Headers/AppKit/NSWorkspace.h,
|
||||
* Source/NSWorkspace.m: ([-launchAppWithBundleIdentifier:]) add dummy implementation
|
||||
|
||||
2009-09-14 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSScroller.m,
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <AppKit/AppKitDefines.h>
|
||||
|
||||
@class NSString;
|
||||
@class NSNumber;
|
||||
@class NSArray;
|
||||
@class NSMutableArray;
|
||||
@class NSMutableDictionary;
|
||||
|
@ -148,6 +149,17 @@ typedef NSUInteger NSWorkspaceLaunchOptions;
|
|||
- (BOOL) launchApplication: (NSString*)appName
|
||||
showIcon: (BOOL)showIcon
|
||||
autolaunch: (BOOL)autolaunch;
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
|
||||
// TODO: implement NSAppleEventDescriptor in gnustep-base
|
||||
typedef void NSAppleEventDescriptor;
|
||||
|
||||
- (BOOL) launchAppWithBundleIdentifier: (NSString *)bundleIdentifier
|
||||
options: (NSWorkspaceLaunchOptions)options
|
||||
additionalEventParamDescriptor: (NSAppleEventDescriptor *)descriptor
|
||||
launchIdentifier: (NSNumber **)identifier;
|
||||
#endif
|
||||
|
||||
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
|
||||
- (NSDictionary*) activeApplication;
|
||||
- (NSArray*) launchedApplications;
|
||||
|
|
|
@ -1448,6 +1448,17 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL) launchAppWithBundleIdentifier: (NSString *)bundleIdentifier
|
||||
options: (NSWorkspaceLaunchOptions)options
|
||||
additionalEventParamDescriptor: (NSAppleEventDescriptor *)descriptor
|
||||
launchIdentifier: (NSNumber **)identifier
|
||||
{
|
||||
// TODO: full implementation
|
||||
return [self launchApplication: bundleIdentifier
|
||||
showIcon: YES
|
||||
autolaunch: NO];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a description of the currently active application, containing
|
||||
* the name (NSApplicationName), path (NSApplicationPath) and process
|
||||
|
|
Loading…
Reference in a new issue