adium/adium

Parents f50218467edc
Children 7e157cfdb75f
According to https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/Reference/Reference.html, NSDateFormatterBehavior10_4 has been the default for setFormatterBehavior since 10.5. We no longer need to set it explicitly.
--- a/Frameworks/AIUtilities Framework/Source/AIDateFormatterAdditions.m Thu Mar 15 23:48:29 2012 +0100
+++ b/Frameworks/AIUtilities Framework/Source/AIDateFormatterAdditions.m Fri Mar 16 09:08:57 2012 -0500
@@ -171,7 +171,6 @@
if (!(*cachePointer)) {
*cachePointer = [[NSDateFormatter alloc] init];
- [*cachePointer setFormatterBehavior:NSDateFormatterBehavior10_4];
[*cachePointer setDateStyle:NSDateFormatterFullStyle];
[*cachePointer setTimeStyle:NSDateFormatterNoStyle];
}
@@ -188,7 +187,6 @@
if (!(*cachePointer)) {
*cachePointer = [[NSDateFormatter alloc] init];
- [*cachePointer setFormatterBehavior:NSDateFormatterBehavior10_4];
[*cachePointer setDateStyle:NSDateFormatterShortStyle];
[*cachePointer setTimeStyle:NSDateFormatterNoStyle];
}
@@ -228,7 +226,6 @@
if (!(*cachePointer)) {
// Get the current time format string
*cachePointer = [[NSDateFormatter alloc] init];
- [*cachePointer setFormatterBehavior:NSDateFormatterBehavior10_4];
[*cachePointer setDateStyle:NSDateFormatterNoStyle];
[*cachePointer setTimeStyle:(seconds) ? NSDateFormatterMediumStyle : NSDateFormatterShortStyle];
@@ -694,7 +691,6 @@
// Same as "%X %x"
// Not an exact conversion, I should see what matches most closely.
NSDateFormatter *tempFormatter = [[NSDateFormatter alloc] init];
- [tempFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[tempFormatter setDateStyle:NSDateFormatterFullStyle];
[tempFormatter setTimeStyle:NSDateFormatterFullStyle];
[newFormat appendString:[tempFormatter dateFormat]];
@@ -773,7 +769,6 @@
// Date representation for the locale, including time zone.
// Not an exact conversion, I should see what matches most closely.
NSDateFormatter *tempFormatter = [[NSDateFormatter alloc] init];
- [tempFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[tempFormatter setDateStyle:NSDateFormatterFullStyle];
[tempFormatter setTimeStyle:NSDateFormatterNoStyle];
[newFormat appendString:[tempFormatter dateFormat]];
@@ -784,7 +779,6 @@
// Time representation for the locale.
// Not an exact conversion, I should see what matches most closely.
NSDateFormatter *tempFormatter = [[NSDateFormatter alloc] init];
- [tempFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[tempFormatter setDateStyle:NSDateFormatterNoStyle];
[tempFormatter setTimeStyle:NSDateFormatterFullStyle];
[newFormat appendString:[tempFormatter dateFormat]];
--- a/Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.m Thu Mar 15 23:48:29 2012 +0100
+++ b/Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.m Fri Mar 16 09:08:57 2012 -0500
@@ -286,7 +286,6 @@
// e.g. "Sun, 06 Nov 1994 08:49:37 GMT"
NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease];
//[dateFormatter setDateFormat:@"%a, %d %b %Y %H:%M:%S GMT"]; // won't work with -init, which uses new (unicode) format behaviour.
- [dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[dateFormatter setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss GMT"];
return dateFormatter;
}
--- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m Thu Mar 15 23:48:29 2012 +0100
+++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m Fri Mar 16 09:08:57 2012 -0500
@@ -336,7 +336,6 @@
timeStampFormatter = [[NSDateFormatter alloc] initWithDateFormat:format allowNaturalLanguage:NO];
} else {
timeStampFormatter = [[NSDateFormatter alloc] init];
- [timeStampFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[timeStampFormatter setDateFormat:format];
}
}
@@ -855,7 +854,6 @@
dateFormatter = [[NSDateFormatter alloc] initWithDateFormat:timeFormat allowNaturalLanguage:NO];
} else {
dateFormatter = [[NSDateFormatter alloc] init];
- [dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[dateFormatter setDateFormat:timeFormat];
}
[timeFormatterCache setObject:dateFormatter forKey:timeFormat];
@@ -1275,7 +1273,6 @@
dateFormatter = [[NSDateFormatter alloc] initWithDateFormat:timeFormat allowNaturalLanguage:NO];
} else {
dateFormatter = [[NSDateFormatter alloc] init];
- [dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[dateFormatter setDateFormat:timeFormat];
}
--- a/Source/AILogViewerWindowController.m Thu Mar 15 23:48:29 2012 +0100
+++ b/Source/AILogViewerWindowController.m Fri Mar 16 09:08:57 2012 -0500
@@ -1975,7 +1975,6 @@
dateFormatter = [cell formatter];
if (!dateFormatter) {
dateFormatter = [[[AILogDateFormatter alloc] init] autorelease];
- [dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[cell setFormatter:dateFormatter];
}
--- a/Source/CBContactLastSeenPlugin.m Thu Mar 15 23:48:29 2012 +0100
+++ b/Source/CBContactLastSeenPlugin.m Fri Mar 16 09:08:57 2012 -0500
@@ -124,7 +124,6 @@
NSString *timeElapsedWithDesignation;
sinceDateFormatter = [[[NSDateFormatter alloc] init] autorelease];
- [sinceDateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[NSDateFormatter withLocalizedShortDateFormatterPerform:^(NSDateFormatter *dateFormatter){
[sinceDateFormatter setDateFormat:[NSString stringWithFormat:@"%@, %@",
[dateFormatter dateFormat],