At 10:29 AM 5/9/2007, you wrote: > > What are the mechanics behind how OSX knows what App to launch to > > open a certain document? > >It basically involves assigning the same Creator code to the file and >application and adding some code in the OpenDocument event of the app >subclass (or window if a simple app) to handle the opening of the >file. This handles both dropping the file on the app's icon or >doubleclicking the file itself.
Thanks, but I was wanting information beyond that. How does the Operating System (OSX) know about the application and where it is? Say I make an application with the Creator code as "GOD1". Say I make a file with the Creator code as "GOD1". Say I zip those up, and email them to a friend, who extracts both to his computer. On his computer, how does OSX know that "GOD1" equals my application? I would think that it wouldn't for my friend, as the only thing he did was write the files onto his computer. Certainly OSX wouldn't take that information as authoritative. The real question is "how do I inform OSX that a new application is born unto this world and all matching Creator Codes should launch this application, located at [this path]"? You know where I'm going with this. If I make a commercial app, and I want to simply distribute it on a .dmg (not a formal installation, but simply "drag this folder to your Applications folder", but I want to associate files with a certain Creator Code to be launched by my app. How do I do that? (On Windows, you simply write into the registry under HKEY_CLASSES_ROOT information regarding the extension of the file.) * * * * * * * * * * * * * * * * * * * * * * * * * * * | Garth Hjelte | | Customer Service Representative, President | | Chicken Systems, Inc, Rubber Chicken Software Co. | | 714 5th Street SE | | Willmar, MN 56201 USA | | | | 800-8-PRO-EPS Toll Free Order Line (US Only) | | 320-235-9798 Tech Support, Sampler Questions | | International Line | | 360-838-7689 Fax | | Product Sales: [EMAIL PROTECTED] | | Product Support: [EMAIL PROTECTED] | | Sampler Q+A: [EMAIL PROTECTED] | | Web Page: www.chickensys.com | * * * * * * * * * * * * * * * * * * * * * * * * * * * _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
