> On May 5, 2016, at 12:01 PM, Martin Wierschin <mar...@nisus.com> wrote:
> 
> Is there any way a user file might be compressed in such a way through normal 
> user actions?

Yes, there are various user-level utilities for compressing files, like 
Clusters (http://clustersapp.com <http://clustersapp.com/>). The `ditto` tool 
also has a flag for compressing the destination file (--compress, I think).

Theoretically anything on an HFS+ volume can be compressed, except for a few 
files in /System that need to be read early at boot before the file-compression 
subsystem comes online.

I looked around a bit but couldn’t find any info about an API for compressing 
files. I’d be leery of constructing those extended attributes or resource forks 
myself. I suppose one could use NSTask to invoke `ditto`.

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to