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

Re: NSFileWrapper


  • Subject: Re: NSFileWrapper
  • From: Peter Hudson <email@hidden>
  • Date: Sat, 04 Jun 2016 17:18:07 +0100

Hi Mike

You're right - I want the behaviour of a package. Do you happen to know how I can achieve it?   I had presumed it might be some mix of flag setting at system level. If for example i set the extension on an NSFileWrapper to   .bundle i get some of what I need - but I cant find out how to ‎get an icon of my choosing associated with it. 

Peter

  Original Message  
From: Mike Abdullah
Sent: Saturday, 4 June 2016 17:12
To: Peter Hudson
Cc: email@hidden List
Subject: Re: NSFileWrapper

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


  • Follow-Ups:
    • Re: NSFileWrapper
      • From: Daryle Walker <email@hidden>
    • Re: NSFileWrapper
      • From: Jens Alfke <email@hidden>
References: 
 >NSFileWrapper (From: Peter Hudson <email@hidden>)
 >Re: NSFileWrapper (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: NSFileWrapper
  • Next by Date: Re: NSFileWrapper
  • Previous by thread: Re: NSFileWrapper
  • Next by thread: Re: NSFileWrapper
  • Index(es):
    • Date
    • Thread