mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Better initialization
This commit is contained in:
parent
0644317ab4
commit
9b144b7c13
2 changed files with 23 additions and 1 deletions
|
@ -68,7 +68,7 @@ typedef NSUInteger NSFileVersionAddingOptions;
|
|||
+ (NSFileVersion *)addVersionOfItemAtURL: (NSURL *)url
|
||||
withContentsOfURL: (NSURL *)contentsURL
|
||||
options: (NSFileVersionAddingOptions)options
|
||||
error: (NSError * _Nullable *)outError;
|
||||
error: (NSError **)outError;
|
||||
+ (NSArray *)unresolvedConflictVersionsOfItemAtURL: (NSURL *)url;
|
||||
+ (BOOL)removeOtherVersionsOfItemAtURL: (NSURL *)url
|
||||
error: (NSError **)outError;
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
// Initializers
|
||||
+ (NSFileVersion *)currentVersionOfItemAtURL: (NSURL *)url
|
||||
{
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
@ -77,6 +78,27 @@
|
|||
}
|
||||
|
||||
// Instance methods...
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
if(self != nil)
|
||||
{
|
||||
_isDiscardable = NO;
|
||||
_isResolved = NO;
|
||||
_modificationDate = [[NSDate alloc] init];
|
||||
_fileURL = nil;
|
||||
_contentsURL = nil;
|
||||
_persistentIdentifier = nil;
|
||||
_nonLocalVersion = nil;
|
||||
_hasThumbnail = NO;
|
||||
_hasLocalContents = YES;
|
||||
_conflict = NO;
|
||||
_localizedName = nil;
|
||||
_localizedNameOfSavingComputer = nil;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (BOOL) isDiscardable
|
||||
{
|
||||
return _isDiscardable;
|
||||
|
|
Loading…
Reference in a new issue