mirror of
https://github.com/Codeux-Software/Textual.git
synced 2026-06-16 13:24:32 +00:00
Change to modern functions
This commit is contained in:
@@ -3394,12 +3394,12 @@ NSString * const IRCClientUserNicknameChangedNotification = @"IRCClientUserNickn
|
||||
}
|
||||
|
||||
/* Prepare to toggle feature */
|
||||
NSString *feature = stringIn.tokenIncludingQuotes.string;
|
||||
NSString *feature = stringIn.tokenInsideQuotes.string;
|
||||
|
||||
BOOL applyToAll = [feature isEqualToString:@"-a"];
|
||||
|
||||
if (applyToAll) {
|
||||
feature = stringIn.tokenIncludingQuotes.string;
|
||||
feature = stringIn.tokenInsideQuotes.string;
|
||||
}
|
||||
|
||||
NSDictionary *features = @{
|
||||
@@ -12348,7 +12348,7 @@ NSString * const IRCClientUserNicknameChangedNotification = @"IRCClientUserNickn
|
||||
return;
|
||||
}
|
||||
|
||||
NSString *section1 = textMutable.tokenIncludingQuotes;
|
||||
NSString *section1 = textMutable.tokenInsideQuotes;
|
||||
NSString *section2 = textMutable.token;
|
||||
NSString *section3 = textMutable.token;
|
||||
NSString *section4 = textMutable.token;
|
||||
|
||||
@@ -425,8 +425,8 @@ NSString * const TPCResourceManagerScriptDocumentTypeExtensionWithoutPeriod = @
|
||||
{
|
||||
return [RZFileManager() replaceItemAtURL:destination
|
||||
withItemAtURL:url
|
||||
moveToDestination:NO
|
||||
moveDestinationToTrash:YES];
|
||||
options:(CSFileManagerOptionsMoveToTrash |
|
||||
CSFileManagerOptionsRemoveIfExists)];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -844,8 +844,7 @@ typedef NSMutableDictionary <NSString *, TPCTheme *> *TPCThemeControllerThemeLi
|
||||
|
||||
[RZFileManager() replaceItemAtURL:temporaryURL
|
||||
withItemAtURL:originalURL
|
||||
moveToDestination:NO
|
||||
moveDestinationToTrash:NO];
|
||||
options:CSFileManagerOptionsRemoveIfExists];
|
||||
}
|
||||
|
||||
- (void)presentCompatibilityAlert
|
||||
@@ -1231,8 +1230,8 @@ typedef NSMutableDictionary <NSString *, TPCTheme *> *TPCThemeControllerThemeLi
|
||||
|
||||
if ([RZFileManager() replaceItemAtURL:destinationURL
|
||||
withItemAtURL:sourceURL
|
||||
moveToDestination:NO
|
||||
moveDestinationToTrash:YES] == NO)
|
||||
options:(CSFileManagerOptionsMoveToTrash |
|
||||
CSFileManagerOptionsRemoveIfExists)] == NO)
|
||||
{
|
||||
[self cancelOperation];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user