Re: NSFileWrapper
Re: NSFileWrapper
- Subject: Re: NSFileWrapper
- From: Mike Abdullah <email@hidden>
- Date: Sat, 04 Jun 2016 18:12:45 +0200
It sounds like you want your file format to be what is known as a “package”. It’s a directory, but is (mostly) presented as a single file.
NSFileWrapper is an API for working with files, it does not directly control whether something is a package or not. It just happens to be the most convenient API in Cocoa for working with packages and documents, and so NSDocument has built in support for that.
Mike.
> On 4 Jun 2016, at 12:01, Peter Hudson <email@hidden> wrote:
>
> Hi All
>
> Our users have now decided to push the bounds of the system - resulting in file sizes that are getting to large for comfort.
>
> It would be possible to fairly easily split the current file format into two and store it as two separate units. This is a particularly interesting solution as half the data rarely changes. It would however be neccessary for the two files to be handled transparently, by the user, as one unit.
>
> I have been looking over the docs for NSFileWrapper. I can’t see if it is possible to construct a file wrapper that presents itself to the user as ‘one file’ complete with icon - and hides the multiple files in the wrapper.
>
> Any suggestions / pointers gratefully recieved !
>
> Peter
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden