adium 4385:29e120eb250a: Two small AIDateFormatterAdditions fixes:

commits at adium.im commits at adium.im
Fri Dec 16 13:35:03 UTC 2011


details:	http://hg.adium.im/adium/rev/29e120eb250a
revision:	4385:29e120eb250a
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Fri Dec 16 14:34:53 2011 +0100

Two small AIDateFormatterAdditions fixes:

* -localizedDateFormatStringShowingSeconds:showingAMorPM: was always using
  seconds and no AM/PM when invoked from a different queue.
* The inspector pane was accidentially changed from the normal to the short
  formatter.

diffs (36 lines):

diff -r cade9105b5ea -r 29e120eb250a Dependencies/build.sh
--- a/Dependencies/build.sh	Fri Dec 16 14:05:19 2011 +0100
+++ b/Dependencies/build.sh	Fri Dec 16 14:34:53 2011 +0100
@@ -22,7 +22,7 @@
 NUMBER_OF_CORES=`sysctl -n hw.activecpu`
 
 # Also try /Developer-old, just in case XCode 4 is installed
-DEVELOPER="/Developer"
+DEVELOPER="/Developer-old"
 SDK_ROOT="${DEVELOPER}/SDKs/MacOSX10.6.sdk"
 
 MIN_OS_VERSION="10.6"
diff -r cade9105b5ea -r 29e120eb250a Frameworks/AIUtilities Framework/Source/AIDateFormatterAdditions.m
--- a/Frameworks/AIUtilities Framework/Source/AIDateFormatterAdditions.m	Fri Dec 16 14:05:19 2011 +0100
+++ b/Frameworks/AIUtilities Framework/Source/AIDateFormatterAdditions.m	Fri Dec 16 14:34:53 2011 +0100
@@ -216,7 +216,7 @@
 	
 	if (dispatch_get_current_queue() != localizedFormatterQueue) {
 		dispatch_sync(localizedFormatterQueue, ^{
-			formatString = [[self localizedDateFormatStringShowingSeconds:YES showingAMorPM:NO] retain];
+			formatString = [[self localizedDateFormatStringShowingSeconds:seconds showingAMorPM:showAmPm] retain];
 		});
 		return [formatString autorelease];
 	}
diff -r cade9105b5ea -r 29e120eb250a Source/AIInfoInspectorPane.m
--- a/Source/AIInfoInspectorPane.m	Fri Dec 16 14:05:19 2011 +0100
+++ b/Source/AIInfoInspectorPane.m	Fri Dec 16 14:34:53 2011 +0100
@@ -702,7 +702,7 @@
 				break;				
 			case kABMultiDateProperty:
 				if (innerValue) {
-					[NSDateFormatter withLocalizedShortDateFormatterPerform:^(NSDateFormatter *dateFormatter){
+					[NSDateFormatter withLocalizedDateFormatterPerform:^(NSDateFormatter *dateFormatter){
 						[profileArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:
 												 [NSString stringWithFormat:@"%@ (%@)", ABLocalizedPropertyOrLabel(property), label], KEY_KEY,
 												 [dateFormatter stringFromDate:(NSDate *)innerValue], KEY_VALUE,




More information about the commits mailing list