NSDocument save incremental file package in-place
NSDocument save incremental file package in-place
- Subject: NSDocument save incremental file package in-place
- From: Trygve Inda <email@hidden>
- Date: Sat, 01 Mar 2014 07:23:15 -0800
- Thread-topic: NSDocument save incremental file package in-place
I have a Document whose file type is a package and potentially contains a
few thousand files. My test case is about 7500 files (mostly images).
I am using
-(NSFileWrapper *)fileWrapperOfType:(NSString *)typeName error:(NSError
**)outError
The problem is that when there is a very small change (just adding or
removing one of the files in the package), the system does not save in
place.
Rather it reads the previous package file completely, writes out a copy of
the package (400 MB) and then renames it.
How can I get it to save in place?
Right now my save operation takes 40 seconds when it could take less than a
second.
Thanks,
Trygve
_______________________________________________
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