Skip to content

Commit df484c1

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master'
2 parents 0958df3 + f8df3fc commit df484c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# LSFileWrapper
2-
Replacement for NSFileWrapper that loads / saves content on-demand. Understands how to save / serialize objects like ALAsset, UIImage, NSImage, NSDictionary, etc...
2+
Replacement for NSFileWrapper that loads / saves content on-demand. Understands how to save / serialize objects like NSData, UIImage, NSImage, NSDictionary, etc...
33
### Requirements
44
LSFileWrapper supports Mac OS X 10.7 Lion and iOS 8.0. The Xcode project contains two framework targets for:
55
* macOS (10.7 or greater)
@@ -10,6 +10,6 @@ LSFileWrapper supports Mac OS X 10.7 Lion and iOS 8.0. The Xcode project contain
1010
3. To add a file wrapper to existing wrapper use `-addFileWrapper` or `-setFileWrapper`, the difference between the two being that add will suffix a filename with a 2, 3, 4, etc… if the file exists already and return the final filename, set will overwrite an existing one. `-addContent` and `-setContent` work the same way, but create the file wrapper for you.
1111
4. To remove a file wrapper from existing wrapper use `-removeFileWrapper`.
1212
5. To retrieve contents of a regular file wrapper use one of various convenience methods: `-data`, `-string`, `-dictionary`, `-image`.
13-
6. To get wrappers from a directory wrapper use `@property fileWrappers` or call `-fileWrapperWithPath`.
14-
7. To write the wrapper to disk call `-writeToURL` or `-writeUpdatesToURL`, the difference between the two being that updates will update the wrapper location, so use this only in situations like autosave for duplicate operations use `-writeToURL`.
13+
6. To get wrappers from a directory wrapper use `@property fileWrappers` or call `-fileWrapperWithPath`, the latter will also traverse all children based on path.
14+
7. To write the wrapper to disk call `-writeToURL` or `-writeUpdatesToURL`, the difference between the two being that updates will update the wrapper location, so use this only in situations like autosave for duplicate operations use `-writeToURL`. If the write is issued as part of NSDocument's save routine there's a convenience method `-writeToURL forSaveOperation` that automatically calls `-writeToURL` or `-writeUpdatesToURL` based on save operation and also handles document backups, url switches on save as and is app sandox ready.
1515
8. To update the contents of a regular file wrapper use `-updateContent`.

0 commit comments

Comments
 (0)