• 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: Programmatically unarchiving files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically unarchiving files


  • Subject: Re: Programmatically unarchiving files
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 24 Apr 2006 14:01:21 +0200

Paul,

On Apr 24, 2006, at 3:53 AM, Paul Kim wrote:

What is the recommended way to open up archives?

I don't think there is any. Although it would be very nice if there was a generic API for archives along with a Filter Services like protocol for 3rd-party software to add other archive formats, I've never heard of anything like, alas.


I know I can use BOMArchiveHelper via NSWorkspace but this will be done in a background program and I don't want the user to see progress windows popping up. I could use ditto/tar/bunzip but I would have to maintain mappings between archive types and the programs needed to open them. Not the end of the world but I'd prefer an easier way.

I am afraid you have to choose the lesser evil here.

Also, it is important that this be done safely (so a blind 'open' would not be suitable because of potential file type spoofs).

This should very definitely be addressed at the Launch Services level (or below). Actually I did thought it is, but perhaps I was wrong? I've never tested this... if the "You are about to launch unknown app first time..." report is *not* a generic service but just a Finder specific extra, well, it's very bad and Apple should fix it ASAP! (Arguably the warning should be even below LS, but there might be serious drawbacks... well, anyway, I am digressing again, since this you haven't asked for... sorry :))
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Programmatically unarchiving files (From: Paul Kim <email@hidden>)

  • Prev by Date: Re: Animated split view collapsing
  • Next by Date: Re: Should Cocoa Apps have splash screens at all ?
  • Previous by thread: Programmatically unarchiving files
  • Next by thread: core data/binding question
  • Index(es):
    • Date
    • Thread