Re: NSFileWrapper Role
Re: NSFileWrapper Role
- Subject: Re: NSFileWrapper Role
- From: Graham Cox <email@hidden>
- Date: Sat, 25 Feb 2012 23:27:57 +1100
On 25/02/2012, at 2:47 PM, -Sergei G- wrote:
> I don't quite get the role of NSFileWrapper. It appears to provide a subset of NSFileManager functionality. Some of the Apple samples use NSFileWrapper to implement bundle support, but it is not clear if that's a requirement or just a choice of the developer.
>
> Can someone elaborate beyond the official
> The NSFileWrapper class provides access to the attributes and contents of file-system nodes. A file-system node is a file, directory, or symbolic link. Instances of this class are known as file wrappers.
It allows you to represent a file that doesn't yet exist, even if it has a complex structure. You can construct its contents at your leisure, then, it can be written to a real file in one go.
--Graham
_______________________________________________
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