--- a/Frameworks/AIUtilities Framework/Source/NSCalendarDate+ISO8601Parsing.m Mon Jan 23 22:30:16 2012 -0500
+++ b/Frameworks/AIUtilities Framework/Source/NSCalendarDate+ISO8601Parsing.m Wed Jan 25 01:24:41 2012 -0500
@@ -579,12 +579,11 @@
static NSInteger lastUsedSecondsFromGMT = NSNotFound;
static NSTimeZone *lastUsedTimeZone;
if (secondsFromGMT == lastUsedSecondsFromGMT)
- timeZone = [[lastUsedTimeZone retain] autorelease];
+ timeZone = lastUsedTimeZone; timeZone = [NSTimeZone timeZoneForSecondsFromGMT:secondsFromGMT];
lastUsedSecondsFromGMT = secondsFromGMT;
- [lastUsedTimeZone autorelease];
- lastUsedTimeZone = [timeZone retain];
+ lastUsedTimeZone = timeZone; --- a/Frameworks/FriBidi Framework/FriBidi.xcconfig Mon Jan 23 22:30:16 2012 -0500
+++ b/Frameworks/FriBidi Framework/FriBidi.xcconfig Wed Jan 25 01:24:41 2012 -0500
@@ -1,8 +1,9 @@
APPLY_RULES_IN_COPY_FILES = YES
INFOPLIST_OUTPUT_FORMAT = binary
GCC_VERSION = com.apple.compilers.llvm.clang.1_0
GCC_PREPROCESSOR_DEFINITIONS = HAVE_CONFIG_H
PLIST_FILE_OUTPUT_FORMAT = binary
+CLANG_ENABLE_OBJC_ARC = YES --- a/Frameworks/FriBidi Framework/FriBidi.xcodeproj/project.pbxproj Mon Jan 23 22:30:16 2012 -0500
+++ b/Frameworks/FriBidi Framework/FriBidi.xcodeproj/project.pbxproj Wed Jan 25 01:24:41 2012 -0500
@@ -323,6 +323,7 @@
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "FriBidi" */;
compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English; hasScannedForEncodings = 1;
@@ -385,39 +386,12 @@
1DEB91AE08733DA50010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
- DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 1;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = FriBidi_Prefix.pch;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- INFOPLIST_FILE = Info.plist;
- LD_DYLIB_INSTALL_NAME = "@rpath/FriBidi.framework/Versions/A/FriBidi";
- PRODUCT_NAME = FriBidi;
- VALID_ARCHS = "i386 x86_64";
- WRAPPER_EXTENSION = framework;
1DEB91AF08733DA50010E9CD /* Release */ = {
isa = XCBuildConfiguration;
- DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 1;
- GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = FriBidi_Prefix.pch;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- INFOPLIST_FILE = Info.plist;
- LD_DYLIB_INSTALL_NAME = "@rpath/FriBidi.framework/Versions/A/FriBidi";
- PRODUCT_NAME = FriBidi;
- WRAPPER_EXTENSION = framework;
@@ -425,13 +399,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9719EEEC134129210030317B /* Debug.xcconfig */;
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- GCC_PREPROCESSOR_DEFINITIONS = HAVE_CONFIG_H;
- ONLY_ACTIVE_ARCH = YES;
- VALID_ARCHS = "i386 ppc ppc64 ppc7400 ppc970 x86_64";
@@ -439,17 +406,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9719EEEE134129210030317B /* Release.xcconfig */;
- APPLY_RULES_IN_COPY_FILES = YES;
- GCC_PREPROCESSOR_DEFINITIONS = HAVE_CONFIG_H;
- INFOPLIST_OUTPUT_FORMAT = binary;
- PLIST_FILE_OUTPUT_FORMAT = binary;
@@ -457,35 +413,12 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9719EEED134129210030317B /* Release-Debug.xcconfig */;
- APPLY_RULES_IN_COPY_FILES = YES;
- GCC_PREPROCESSOR_DEFINITIONS = HAVE_CONFIG_H;
- INFOPLIST_OUTPUT_FORMAT = binary;
- PLIST_FILE_OUTPUT_FORMAT = binary;
346637AE0D415806006C9034 /* Release-Debug */ = {
isa = XCBuildConfiguration;
- DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 1;
- GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = FriBidi_Prefix.pch;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- INFOPLIST_FILE = Info.plist;
- LD_DYLIB_INSTALL_NAME = "@rpath/FriBidi.framework/Versions/A/FriBidi";
- PRODUCT_NAME = FriBidi;
- WRAPPER_EXTENSION = framework;
--- a/Frameworks/FriBidi Framework/NSString-FBAdditions.m Mon Jan 23 22:30:16 2012 -0500
+++ b/Frameworks/FriBidi Framework/NSString-FBAdditions.m Wed Jan 25 01:24:41 2012 -0500
@@ -37,7 +37,7 @@
// Get a single character
- uch = (UTF16)CFStringGetCharacterAtIndex((CFStringRef)self, i);
+ uch = (UTF16)CFStringGetCharacterAtIndex((__bridge CFStringRef)self, i); --- a/Other/Adium Spotlight Importer/GetMetadataForFile.m Mon Jan 23 22:30:16 2012 -0500
+++ b/Other/Adium Spotlight Importer/GetMetadataForFile.m Wed Jan 25 01:24:41 2012 -0500
@@ -57,25 +57,23 @@
/* Return TRUE if successful, FALSE if there was no data provided */
- NSAutoreleasePool *pool;
- pool = [[NSAutoreleasePool alloc] init];
if (CFStringCompare(contentTypeUTI, (CFStringRef)@"com.adiumx.htmllog", kCFCompareBackwards) == kCFCompareEqualTo) {
- success = GetMetadataForHTMLLog((NSMutableDictionary *)attributes, (NSString *)pathToFile);
+ success = GetMetadataForHTMLLog((__bridge NSMutableDictionary *)attributes, (__bridge NSString *)pathToFile); } else if (CFStringCompare(contentTypeUTI, (CFStringRef)@"com.adiumx.xmllog", kCFCompareBackwards) == kCFCompareEqualTo) {
- success = GetMetadataForXMLLog((NSMutableDictionary *)attributes, (NSString *)pathToFile);
+ success = GetMetadataForXMLLog((__bridge_transfer NSMutableDictionary *)attributes, (__bridge NSString *)pathToFile); NSLog(@"We were passed %@, of type %@, which is an unknown type",pathToFile,contentTypeUTI);
static CFStringRef ResolveUTI(CFStringRef contentTypeUTI, NSURL *urlToFile) {
//Deteremine the UTI type if we weren't passed one
- CFStringRef pathExtension = (CFStringRef)[urlToFile pathExtension];
+ CFStringRef pathExtension = (__bridge CFStringRef)[urlToFile pathExtension]; if (contentTypeUTI == NULL) {
if (CFStringCompare(pathExtension, CFSTR("chatLog"), (kCFCompareBackwards | kCFCompareCaseInsensitive)) == kCFCompareEqualTo) {
contentTypeUTI = CFSTR("com.adiumx.xmllog");
@@ -90,7 +88,7 @@
NSData *CopyDataForURL(CFStringRef contentTypeUTI, NSURL *urlToFile) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
contentTypeUTI = ResolveUTI(contentTypeUTI, urlToFile);
@@ -115,14 +113,13 @@
NSLog(@"We were passed %@, of type %@, which is an unknown type", urlToFile, contentTypeUTI);
NSData *CopyDataForFile(CFStringRef contentTypeUTI, CFStringRef pathToFile) {
- return CopyDataForURL(contentTypeUTI, [NSURL fileURLWithPath:(NSString *)pathToFile]);
+ return CopyDataForURL(contentTypeUTI, [NSURL fileURLWithPath:(__bridge NSString *)pathToFile]); CFStringRef CopyTextContentForFileData(CFStringRef contentTypeUTI, NSURL *urlToFile, NSData *fileData) {
@@ -137,7 +134,7 @@
} else if (CFEqual(contentTypeUTI, CFSTR("com.adiumx.xmllog"))) {
result = CopyTextContentForXMLLogData(fileData);
- return (CFStringRef)result;
+ return (__bridge CFStringRef)result; @@ -153,12 +150,12 @@
CFStringRef CopyTextContentForFile(CFStringRef contentTypeUTI,
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSData *logData = CopyDataForFile(contentTypeUTI, pathToFile);
- CFStringRef textContent = CopyTextContentForFileData(contentTypeUTI, [NSURL fileURLWithPath:(NSString *)pathToFile], logData);
+ CFStringRef textContent = CopyTextContentForFileData(contentTypeUTI, [NSURL fileURLWithPath:(__bridge NSString *)pathToFile], logData); @@ -247,15 +244,12 @@
forKey:(NSString *)kMDItemDisplayName];
- [otherAuthors release];
[attributes setObject:@"Chat log"
forKey:(NSString *)kMDItemKind];
[attributes setObject:@"Adium"
forKey:(NSString *)kMDItemCreator];
@@ -311,7 +305,6 @@
NSArray *contentArray = [xmlDoc nodesForXPath:@"//message//text()" error:NULL];
contentString = [contentArray componentsJoinedByString:@" "];
--- a/Other/Adium Spotlight Importer/GetMetadataForHTMLLog-Additions.m Mon Jan 23 22:30:16 2012 -0500
+++ b/Other/Adium Spotlight Importer/GetMetadataForHTMLLog-Additions.m Wed Jan 25 01:24:41 2012 -0500
@@ -129,11 +129,11 @@
NSData *data = [NSData dataWithContentsOfFile:path];
- string = [[[NSString alloc] initWithData:data
- encoding:NSUTF8StringEncoding] autorelease];
+ string = [[NSString alloc] initWithData:data + encoding:NSUTF8StringEncoding]; - string = [[[NSString alloc] initWithData:data
- encoding:NSASCIIStringEncoding] autorelease];
+ string = [[NSString alloc] initWithData:data + encoding:NSASCIIStringEncoding]; @@ -163,7 +163,7 @@
- (NSString *)stringByUnescapingFromXMLWithEntities:(NSDictionary *)entities
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber10_3) {
- return [(NSString *)CFXMLCreateStringByUnescapingEntities(kCFAllocatorDefault, (CFStringRef)self, (CFDictionaryRef)entities) autorelease];
+ return (__bridge_transfer NSString *)CFXMLCreateStringByUnescapingEntities(kCFAllocatorDefault, (__bridge CFStringRef)self, (__bridge CFDictionaryRef)entities); --- a/Other/Adium Spotlight Importer/GetMetadataForHTMLLog.m Mon Jan 23 22:30:16 2012 -0500
+++ b/Other/Adium Spotlight Importer/GetMetadataForHTMLLog.m Wed Jan 25 01:24:41 2012 -0500
@@ -111,8 +111,6 @@
[attributes setObject:textContent
forKey:(NSString *)kMDItemTextContent];
[attributes setObject:serviceClass
forKey:@"com_adiumX_service"];
--- a/Source/ApplescriptRunner.m Mon Jan 23 22:30:16 2012 -0500
+++ b/Source/ApplescriptRunner.m Wed Jan 25 01:24:41 2012 -0500
@@ -92,9 +92,9 @@
- (void)respondIfReady:(NSNotification *)inNotification
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[self applescriptRunnerIsReady];
@@ -104,7 +104,7 @@
- (void)executeScript:(NSNotification *)inNotification
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSDictionary *userInfo = [inNotification userInfo];
@@ -156,7 +156,6 @@
[containerEvent setParamDescriptor:arguments forKeyword:keyDirectObject];
@@ -175,12 +174,11 @@
(resultString ? resultString : @""), @"resultString",
//Reset the automatic quit timer
[self resetAutomaticQuitTimer];
@@ -217,7 +215,7 @@
int main(int argc, const char *argv[])
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
AIApplescriptRunner *applescriptRunner;
NSProcessInfo *processInfo;
@@ -268,8 +266,7 @@
[[NSNotificationCenter defaultCenter] postNotification:notification];
- [applescriptRunner release];
--- a/xcconfigs/AdiumApplescriptRunner.xcconfig Mon Jan 23 22:30:16 2012 -0500
+++ b/xcconfigs/AdiumApplescriptRunner.xcconfig Wed Jan 25 01:24:41 2012 -0500
@@ -1,1 +1,2 @@
PRODUCT_NAME = AdiumApplescriptRunner
+CLANG_ENABLE_OBJC_ARC = YES --- a/xcconfigs/Spotlight Importer.xcconfig Mon Jan 23 22:30:16 2012 -0500
+++ b/xcconfigs/Spotlight Importer.xcconfig Wed Jan 25 01:24:41 2012 -0500
@@ -6,3 +6,4 @@
GCC_GENERATE_DEBUGGING_SYMBOLS = NO
INSTALL_PATH = /Library/Spotlight
+CLANG_ENABLE_OBJC_ARC = YES