Skip to content

Commit

Permalink
Added rawNameOfEntry: convenience method back into XADMaster framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Rauchfuss authored and Alexander Rauchfuss committed Feb 9, 2017
1 parent f084b03 commit 72826e2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ extern NSString *XADFinderFlags;
-(NSDictionary *)combinedParserDictionaryForEntry:(int)n;

-(NSString *)nameOfEntry:(int)n;
-(XADPath *)rawNameOfEntry:(int)n;
-(BOOL)entryHasSize:(int)n;
-(off_t)uncompressedSizeOfEntry:(int)n;
-(off_t)compressedSizeOfEntry:(int)n;
Expand Down
Binary file modified Frameworks/XADMaster.framework/Versions/A/XADMaster
Binary file not shown.
2 changes: 1 addition & 1 deletion Managed Objects/TSSTManagedGroup.m
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ -(void)archiveNeedsPassword:(XADArchive *)archive
return;
}

password = [[NSApp delegate] passwordForArchiveWithPath: [self valueForKey: @"path"]];
password = [(SimpleComicAppDelegate *)[NSApp delegate] passwordForArchiveWithPath: [self valueForKey: @"path"]];
[archive setPassword: password];

[self setValue: password forKey: @"password"];
Expand Down
2 changes: 1 addition & 1 deletion QuickComic/DTQuickComicCommon.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
for ( ; index < count; ++index)
{
fileName = [archive nameOfEntry: index];
XADString * dataString = [archive rawNameOfEntry: index];
XADPath * dataString = [archive rawNameOfEntry: index];
rawName = [dataString stringWithEncoding: NSNonLossyASCIIStringEncoding];
if([[NSImage imageFileTypes] containsObject: [fileName pathExtension]])
{
Expand Down
2 changes: 1 addition & 1 deletion Session/TSSTSessionWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ - (void)setIconWithSelection:(NSInteger)selection andCropRect:(NSRect)cropRect
if([(TSSTManagedArchive *)selectedGroup quicklookCompatible])
{
int coverIndex = [[selectedPage valueForKey: @"index"] intValue];
XADString * coverName = [(XADArchive *)[selectedGroup instance] rawNameOfEntry: coverIndex];
XADPath * coverName = [(XADArchive *)[selectedGroup instance] rawNameOfEntry: coverIndex];
[UKXattrMetadataStore setString: [coverName stringWithEncoding: NSNonLossyASCIIStringEncoding]
forKey: @"QCCoverName"
atPath: archivePath
Expand Down

0 comments on commit 72826e2

Please sign in to comment.