On Monday, February 3, 2003, at 04:44 PM, Charlie Fiskeaux II wrote:
I'm trying to find out how I can associate my filetype with my applicationFor OSX, or 9?
upon installation on a Mac. I've looked on the Apple developers' website
and found information about bundle resources, catalog files, and desktop
databases. But not having any experience in developing software for Mac's,
I don't know how to use the information. How can I create an installer for
my software that links my application with my filetype (so that when the
user double clicks on my filetype, it will open in my application)??
For X, I believe you set a creator/filetype flag in a plist for your program bundle. If you're talking 9 or earlier you would change your *projector's* resource fork's ID -- I believe it's the "creator" type -- using ResEdit, then, whenever a file is saved by that projector you would use something like BuddyAPI to change its filetype so it matches your application.
However you still have the problem of getting the projector to realize that (when one of its special files was double-clicked) it was supposed to open and run that file -- ordinarily it'll just run, but not actually do anything with the chosen file. For that there's an Xtra (whose name I've forgotten -- check the table at updatestage.com ) that should allow your projector to read and load the file properly.
It's not an installation step; you're thinking too Windowsish. Mac has no "registry". Documents are associated with creator files by the *programs* themselves.
Warren Ockrassa | http://www.nightwares.com/
Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
http://shop.osborne.com/cgi-bin/osborne/0072195622.html
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
