Remove entry from MISSING file.

This commit is contained in:
Gregory John Casamento 2019-09-11 12:32:34 -04:00
parent f261441c6a
commit 69d74e84aa
3 changed files with 12 additions and 13 deletions

View file

@ -20,7 +20,6 @@ Missing headers:
<NSFileCoordinator.h>
<NSFilePresenter.h>
<NSFileVersion.h>
<NSFileWrapper.h>
<NSHFSFileTypes.h>
<NSLinguisticTagger.h>
<NSObjectScripting.h>
@ -43,7 +42,6 @@ Foundation:
<NSFileCoordinator.h>
<NSFilePresenter.h>
<NSFileVersion.h>
<NSFileWrapper.h>
<NSLinguisticTagger.h>
<NSAppleEventDescriptor.h>
<NSAppleEventManager.h>

View file

@ -68,7 +68,7 @@ typedef NSUInteger NSFileWrapperWritingOptions;
NSMutableDictionary *_fileAttributes;
GSFileWrapperType _wrapperType;
id _wrapperData;
id _iconImage;
id _icon;
}
//

View file

@ -201,7 +201,7 @@
TEST_RELEASE(_fileAttributes);
TEST_RELEASE(_preferredFilename);
TEST_RELEASE(_wrapperData);
TEST_RELEASE(_iconImage);
TEST_RELEASE(_icon);
[super dealloc];
}
@ -679,16 +679,14 @@ originalContentsURL: (NSURL*)originalContentsURL
updateFilenames: options & NSFileWrapperWritingWithNameUpdating];
}
// Simple foundation implementation to avoid issues when unarchiving.
// Will be category smashed by GUI implementation...
- (void) setIcon: (id)icon
- (void) setIcon: (id)image
{
// this method is here to quell compiler warnings.
}
//
// Archiving
//
- (void) encodeWithCoder: (NSCoder*)aCoder
{
if ([aCoder allowsKeyedCoding])
@ -702,7 +700,7 @@ originalContentsURL: (NSURL*)originalContentsURL
[aCoder encodeObject: _preferredFilename];
[aCoder encodeObject: _fileAttributes];
[aCoder encodeObject: _wrapperData];
[aCoder encodeObject: _iconImage];
[aCoder encodeObject: _icon];
}
}
@ -719,14 +717,14 @@ originalContentsURL: (NSURL*)originalContentsURL
NSString *preferredFilename;
NSDictionary *fileAttributes;
id wrapperData;
id iconImage;
id icon;
[aDecoder decodeValueOfObjCType: @encode(int) at: &wrapperType];
// Dont restore the file name
preferredFilename = [aDecoder decodeObject];
fileAttributes = [aDecoder decodeObject];
wrapperData = [aDecoder decodeObject];
iconImage = [aDecoder decodeObject];
icon = [aDecoder decodeObject];
switch (wrapperType)
{
@ -755,9 +753,12 @@ originalContentsURL: (NSURL*)originalContentsURL
{
[self setFileAttributes: fileAttributes];
}
if (iconImage != nil)
if (icon != nil)
{
[self setIcon: iconImage];
if([self respondsToSelector: @selector(setIcon:)])
{
[self setIcon: icon];
}
}
}
return self;