Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating a web browser popup menu



Two part question,

I am trying to create a menu containing available web browsers similar to the one in the Safari Preferences. I understand that Internet Config is now out of fashion and the proper way to do things is with Launch Services and System Configuration. Using LSCopyApplicationURLsForURL I am able to get http viewers, however I get applications that are not web browsers. I decided it would be best to cross reference my list with a list of html viewers as well. The problem is that a file url to an actual file is required. Creating a tmp file or bundling a html file that users might damage seems like a bit of a hack to populate a small menu.

Question 1: Is there any way to get a list of registered viewers for a file type without actually needing a real file.

Also, Safari allows you to change the default browser from that menu. The only way I know of doing this is through Internet Config.

Question 2: Is there any 'supported' way to set the default browser?

I'm using OS X 10.3.x and XCode.

--
There are only 10 kinds of people in this world... those who understand binary and those who don't
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.