2023-12-23 01:44:50 +00:00
|
|
|
/** Implementation of class NSExtensionContext
|
2019-11-10 23:43:12 +00:00
|
|
|
Copyright (C) 2019 Free Software Foundation, Inc.
|
|
|
|
|
2019-11-11 04:02:59 +00:00
|
|
|
By: Gregory Casamento <greg.casamento@gmail.com>
|
2019-11-10 23:43:12 +00:00
|
|
|
Date: Sun Nov 10 03:59:38 EST 2019
|
|
|
|
|
|
|
|
This file is part of the GNUstep Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2019-12-09 23:36:00 +00:00
|
|
|
Lesser General Public License for more details.
|
2019-11-10 23:43:12 +00:00
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free
|
2024-11-07 13:37:59 +00:00
|
|
|
Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA.
|
2019-11-10 23:43:12 +00:00
|
|
|
*/
|
|
|
|
|
2023-10-30 14:30:06 +00:00
|
|
|
#import "Foundation/NSExtensionContext.h"
|
|
|
|
#import "Foundation/NSError.h"
|
|
|
|
#import "Foundation/NSArray.h"
|
|
|
|
#import "Foundation/NSURL.h"
|
|
|
|
#import "Foundation/NSString.h"
|
|
|
|
#import "GNUstepBase/NSObject+GNUstepBase.h"
|
2019-11-10 23:43:12 +00:00
|
|
|
|
|
|
|
@implementation NSExtensionContext
|
|
|
|
|
|
|
|
- (void) setInputItems: (NSArray *)inputItems
|
|
|
|
{
|
|
|
|
ASSIGNCOPY(_inputItems, inputItems);
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *) inputItems
|
|
|
|
{
|
|
|
|
return _inputItems;
|
|
|
|
}
|
|
|
|
|
2023-10-30 14:29:25 +00:00
|
|
|
- (void) completeRequestReturningItems: (NSArray *)items
|
|
|
|
completionHandler: (GSExtensionContextReturningItemsCompletionHandler)completionHandler
|
2019-11-10 23:43:12 +00:00
|
|
|
{
|
2023-10-30 14:29:25 +00:00
|
|
|
[self notImplemented: _cmd];
|
2019-11-10 23:43:12 +00:00
|
|
|
}
|
|
|
|
|
2023-10-30 14:29:25 +00:00
|
|
|
- (void) cancelRequestWithError:(NSError *)error
|
2019-11-10 23:43:12 +00:00
|
|
|
{
|
2023-10-30 14:29:25 +00:00
|
|
|
[self notImplemented: _cmd];
|
2019-11-10 23:43:12 +00:00
|
|
|
}
|
|
|
|
|
2023-10-30 14:29:25 +00:00
|
|
|
- (void) openURL: (NSURL *)URL completionHandler: (GSOpenURLCompletionHandler)completionHandler
|
2019-11-10 23:43:12 +00:00
|
|
|
{
|
2023-10-30 14:29:25 +00:00
|
|
|
[self notImplemented: _cmd];
|
2019-11-10 23:43:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|