Camino only - Bug 342097: Replace _LSCopyApplicationURLsForItemURL with LSCopyApplicationURLsForURL. r/sr=josh

This commit is contained in:
stuart.morgan%alumni.case.edu 2006-11-16 17:02:14 +00:00
parent 37b2af2b90
commit aa5b841c92

View File

@ -47,11 +47,7 @@
// use a set for automatic duplicate elimination
NSMutableSet* browsersSet = [NSMutableSet setWithCapacity:10];
// using LSCopyApplicationURLsForURL would be nice (its not hidden),
// but it only exists on Mac OS X >= 10.3
NSArray* apps;
_LSCopyApplicationURLsForItemURL([NSURL URLWithString:@"http:"], kLSRolesViewer, &apps);
[apps autorelease];
NSArray* apps = [(NSArray*)LSCopyApplicationURLsForURL((CFURLRef)[NSURL URLWithString:@"http:"], kLSRolesViewer) autorelease];
// Put all the browsers into a new array, but only if they also support https and have a bundle ID we can access
NSEnumerator *appEnumerator = [apps objectEnumerator];
@ -76,14 +72,12 @@
- (NSSet*)installedFeedViewerIdentifiers
{
NSArray* apps = nil;
NSMutableSet* feedApps = [[[NSMutableSet alloc] init] autorelease];
NSString* defaultFeedViewerID = [self defaultFeedViewerIdentifier];
if (defaultFeedViewerID)
[feedApps addObject:defaultFeedViewerID];
_LSCopyApplicationURLsForItemURL([NSURL URLWithString:@"feed:"], kLSRolesViewer, &apps);
[apps autorelease];
NSArray* apps = [(NSArray*)LSCopyApplicationURLsForURL((CFURLRef)[NSURL URLWithString:@"feed:"], kLSRolesViewer) autorelease];
NSEnumerator* appEnumerator = [apps objectEnumerator];
NSURL* anApp;