diff --git a/RSS.m b/RSS.m index ea4efa0e..20fb2a33 100644 --- a/RSS.m +++ b/RSS.m @@ -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); diff --git a/SUUserDefaults.m b/SUUserDefaults.m index 990e8301..39d71151 100644 --- a/SUUserDefaults.m +++ b/SUUserDefaults.m @@ -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