mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 23:50:47 +00:00
Add a few MacOSX methods with dummy implementations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33281 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f507c26271
commit
0c5ed271e1
4 changed files with 106 additions and 1 deletions
|
@ -1423,6 +1423,14 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) setIcon: (NSImage *)image
|
||||
forFile: (NSString *)fullPath
|
||||
options: (NSWorkspaceIconCreationOptions)options
|
||||
{
|
||||
// FIXME
|
||||
return NO;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tracking Changes to the File System
|
||||
*/
|
||||
|
@ -1563,6 +1571,12 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (NSString *) absolutePathForAppBundleWithIdentifier: (NSString *)bundleIdentifier
|
||||
{
|
||||
// TODO: full implementation
|
||||
return [self fullPathForApplication: bundleIdentifier];
|
||||
}
|
||||
|
||||
- (BOOL) launchAppWithBundleIdentifier: (NSString *)bundleIdentifier
|
||||
options: (NSWorkspaceLaunchOptions)options
|
||||
additionalEventParamDescriptor: (NSAppleEventDescriptor *)descriptor
|
||||
|
@ -1574,6 +1588,16 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
|||
autolaunch: NO];
|
||||
}
|
||||
|
||||
- (BOOL) openURLs: (NSArray *)urls
|
||||
withAppBundleIdentifier: (NSString *)bundleIdentifier
|
||||
options: (NSWorkspaceLaunchOptions)options
|
||||
additionalEventParamDescriptor: (NSAppleEventDescriptor *)descriptor
|
||||
launchIdentifiers: (NSArray **)identifiers
|
||||
{
|
||||
// FIXME
|
||||
return NO;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a description of the currently active application, containing
|
||||
* the name (NSApplicationName), path (NSApplicationPath) and process
|
||||
|
@ -1954,6 +1978,37 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
|||
return 0;
|
||||
}
|
||||
|
||||
- (BOOL) filenameExtension: (NSString *)filenameExtension
|
||||
isValidForType: (NSString*)typeName
|
||||
{
|
||||
// FIXME
|
||||
return [filenameExtension isEqualToString: typeName];
|
||||
}
|
||||
|
||||
- (NSString *) localizedDescriptionForType: (NSString *)typeName
|
||||
{
|
||||
// FIXME
|
||||
return typeName;
|
||||
}
|
||||
|
||||
- (NSString *) preferredFilenameExtensionForType: (NSString *)typeName
|
||||
{
|
||||
// FIXME
|
||||
return typeName;
|
||||
}
|
||||
|
||||
- (BOOL) type: (NSString *)firstTypeName conformsToType: (NSString *)secondTypeName
|
||||
{
|
||||
// FIXME
|
||||
return [firstTypeName isEqualToString: secondTypeName];
|
||||
}
|
||||
|
||||
- (NSString *) typeOfFile: (NSString *)absoluteFilePath error: (NSError **)outError
|
||||
{
|
||||
// FIXME
|
||||
return [absoluteFilePath pathExtension];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSWorkspace (GNUstep)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue