mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Add initialize
This commit is contained in:
parent
aa6a0175b1
commit
62c0aeb1b2
2 changed files with 31 additions and 12 deletions
|
@ -35,6 +35,8 @@
|
|||
|
||||
@protocol NSFilePresenter;
|
||||
|
||||
const static NSArray *__presenters = nil;
|
||||
|
||||
enum {
|
||||
NSFileCoordinatorReadingWithoutChanges = 1 << 0,
|
||||
NSFileCoordinatorReadingResolvesSymbolicLink = 1 << 1,
|
||||
|
@ -54,10 +56,9 @@ typedef NSUInteger NSFileCoordinatorWritingOptions;
|
|||
|
||||
@interface NSFileAccessIntent : NSObject
|
||||
{
|
||||
@private
|
||||
NSURL *_url;
|
||||
BOOL _isRead;
|
||||
NSInteger _options;
|
||||
NSURL *_url;
|
||||
BOOL _isRead;
|
||||
NSInteger _options;
|
||||
}
|
||||
+ (instancetype) readingIntentWithURL: (NSURL *)url
|
||||
options: (NSFileCoordinatorReadingOptions)options;
|
||||
|
@ -75,14 +76,13 @@ DEFINE_BLOCK_TYPE(GSAccessorHandlerBlock, void, GSBatchAccessorHandler);
|
|||
|
||||
@interface NSFileCoordinator : NSObject
|
||||
{
|
||||
@private
|
||||
id _accessArbiter;
|
||||
id _fileReactor;
|
||||
id _purposeID;
|
||||
NSURL *_recentFilePresenterURL;
|
||||
id _accessClaimIDOrIDs;
|
||||
BOOL _isCancelled;
|
||||
NSMutableDictionary *_movedItems;
|
||||
id _accessArbiter;
|
||||
id _fileReactor;
|
||||
id _purposeID;
|
||||
NSURL *_recentFilePresenterURL;
|
||||
id _accessClaimIDOrIDs;
|
||||
BOOL _isCancelled;
|
||||
NSMutableDictionary *_movedItems;
|
||||
}
|
||||
|
||||
+ (NSArray *) filePresenters;
|
||||
|
|
|
@ -28,9 +28,24 @@
|
|||
#import <Foundation/NSArray.h>
|
||||
|
||||
@implementation NSFileAccessIntent
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
if(self != nil)
|
||||
{
|
||||
_url = nil;
|
||||
_isRead = NO;
|
||||
_options = 0L;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
+ (instancetype) readingIntentWithURL: (NSURL *)url
|
||||
options: (NSFileCoordinatorReadingOptions)options
|
||||
{
|
||||
NSFileAccessIntent *result = [[self alloc] init];
|
||||
ASSIGNCOPY(result->_url, url);
|
||||
result->_options = options;
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
@ -48,6 +63,10 @@
|
|||
|
||||
@implementation NSFileCoordinator
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
}
|
||||
|
||||
+ (NSArray *) filePresenters
|
||||
{
|
||||
return nil;
|
||||
|
|
Loading…
Reference in a new issue