• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa version of InternetConfig file mappings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa version of InternetConfig file mappings?


  • Subject: Re: Cocoa version of InternetConfig file mappings?
  • From: Jim Correia <email@hidden>
  • Date: Sat, 18 Aug 2001 21:31:38 -0400

On Saturday, August 18, 2001, at 06:47 PM, Paul Mitchum wrote:

Greetings. Hopefully this newbie question won't be *too* newbie-ish. :-)

I'm looking for the Cocoa (or even Carbon) analog of the InternetConfig
file mapping database. This isn't spelled out anywhere I've looked, and
the file mapping database parts of IC aren't supported in Carbon.

They certainly are supported:

int main(int argc, char *argv[])
{
ICInstance instance;
OSStatus err;

err = ICStart(&instance, '????'/*use real signature*/);

if (err == noErr)
{
ICMapEntry entry;

err = ICMapFilename(instance, "\pfoobar.html", &entry);

// examine the map in the debugger

ICStop(instance);
}

return 0;
}


How can one ask what MIME types, file extensions, and creator
applications belong together, and also change those relationships?

Depending what information you are looking, LaunchServices is the supported answer.

For some information, like the MIME type, you'll have to go to IC. I've not tried modifying the IC mapping table on X, but it did work on 9 (though you may want to ask the user if it is ok to do so - applications which do so behind my back, and worse, break my existing mappings, are annoying).

I don't believe there is a public way to programatically modify the launch services bindings on X.

Jim


References: 
 >Cocoa version of InternetConfig file mappings? (From: Paul Mitchum <email@hidden>)

  • Prev by Date: Re: Design Q... multiple NIB files
  • Next by Date: Re: Redeclaring overrides
  • Previous by thread: Cocoa version of InternetConfig file mappings?
  • Next by thread: Re: Cocoa version of InternetConfig file mappings?
  • Index(es):
    • Date
    • Thread