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:
Hans Baier 2009-09-15 04:26:29 +00:00
parent 430e6ab1bc
commit 2896ed8473
3 changed files with 28 additions and 0 deletions

View file

@ -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,

View file

@ -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;

View file

@ -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