* Source/externs.m: Added semicolons missing in last commit.

* Source/NSSavePanel.m: Fix return type of sorting function.
This commit is contained in:
fredkiefer 2017-06-13 10:20:52 +02:00 committed by Ivan Vučica
parent 759ff8fecf
commit fc8c034aca
3 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2017-06-13 Fred Kiefer <FredKiefer@gmx.de>
* Source/externs.m: Added semicolons missing in last commit.
* Source/NSSavePanel.m: Fix return type of sorting function.
2017-06-12 Ivan Vucica <ivan@vucica.net>
* Source/NSAttributedString.m,

View file

@ -1656,16 +1656,15 @@ createRowsForColumn: (NSInteger)column
column: (NSInteger)column;
@end
static int compareFilenames (id elem1, id elem2, void *context)
static NSComparisonResult compareFilenames (id elem1, id elem2, void *context)
{
/* TODO - use IMP optimization here. */
NSSavePanel *s = context;
NSSavePanel *self = (NSSavePanel *)context;
return (int)[s->_delegate panel: self
compareFilename: elem1
with: elem2
caseSensitive: YES];
return [self->_delegate panel: self
compareFilename: elem1
with: elem2
caseSensitive: YES];
}

View file

@ -583,8 +583,8 @@ NSString *NSMacSimpleTextDocumentType = @"NSMacSimpleText";
NSString *NSHTMLTextDocumentType = @"NSHTML";
NSString *NSDocFormatTextDocumentType = @"NSDocFormat";
NSString *NSWordMLTextDocumentType = @"NSWordML";
NSString *NSOfficeOpenXMLTextDocumentType = @"NSOfficeOpenXML"
NSString *NSOpenDocumentTextDocumentType = @"NSOpenDocumentText"
NSString *NSOfficeOpenXMLTextDocumentType = @"NSOfficeOpenXML";
NSString *NSOpenDocumentTextDocumentType = @"NSOpenDocumentText";
NSString *NSExcludedElementsDocumentAttribute = @"ExcludedElements";
NSString *NSTextEncodingNameDocumentAttribute = @"TextEncodingName";