mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Camino only - Bug 342097: Replace _LSCopyApplicationURLsForItemURL with LSCopyApplicationURLsForURL. r/sr=josh
This commit is contained in:
parent
37b2af2b90
commit
aa5b841c92
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user