Fixes 240792, 240793

Merging in Brian Webster's Tiger compatibility fixes.
This commit is contained in:
Andy Matuschak committed 2008-06-18 23:01:03 -07:00
commit fcf4da886e
2 files changed
+11

No files matched your search

+5
View File
@@ -184,6 +184,11 @@ NSComparisonResult compareNewsItems(id item1, id item2, void *context)
[delegate feed:self didFailWithError:error];
}
- (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse
{
return request;
}
- (NSDictionary *) headerItems {
return (headerItems);
+6
View File
@@ -41,6 +41,12 @@
{
[self verifyIdentifier];
CFPropertyListRef obj = CFPreferencesCopyAppValue((CFStringRef)defaultName, (CFStringRef)identifier);
// Under Tiger, CFPreferencesCopyAppValue doesn't get values from NSRegistratioDomain, so anything
// passed into -[NSUserDefaults registerDefaults:] is ignored. The following line falls
// back to using NSUserDefaults, but only if the host bundle is the main bundle, and no value
// is found elsewhere.
if (obj == NULL && [identifier isEqualToString:[[NSBundle mainBundle] bundleIdentifier]])
obj = [[NSUserDefaults standardUserDefaults] objectForKey:defaultName];
#if MAC_OS_X_VERSION_MIN_REQUIRED > 1050
return [NSMakeCollectable(obj) autorelease];
#else