nsfilewrapper Questions
1
I'm looking into using UIDocument en NSFileWrapper to store 'projects' that contain quite a few large video files and some small text files. There are a few problems that I run into, and I'm starti...
Cheater asked 5/6, 2014 at 19:0
3
Solved
Given an NSFileWrapper object (for a file or directory), is there any way to get the full path for the location of the actual file on the disk?
[fileWrapper filename] only returns the file name, n...
Solemn asked 13/1, 2012 at 5:8
2
I have a UIDocument based app that uses NSFileWrappers to store data. The 'master' file wrapper contains many additional directory file wrappers, each of which represents a different page of the do...
Scrimp asked 5/3, 2013 at 19:19
2
UIDocument & NSFileWrapper - large files taking a long time to save, despite incremental changes
I have a UIDocument based app that uses NSFileWrappers to store data. The 'master' file wrapper contains many additional directory file wrappers, each of which represents a different page of the do...
Merger asked 5/3, 2013 at 17:57
1
Solved
I'm trying to export my UIDocument subclass with a UIDocumentPickerViewController. The subclass writes data to a FileWrapper and its UTI conforms to com.apple.package.
But the presented document p...
Kilo asked 2/12, 2016 at 17:24
2
Solved
I have a NSFileWrapper directory in which I would like to update a certain FileWrapper. I was wondering what the best way is to do so?
So far I've used this code:
[self.fileWrapper addRegularFil...
Carrie asked 20/6, 2012 at 15:35
3
I have an NSDocument based application that uses filewrappers to save and load its data.
The document can have all kinds of resources, so I don't want to load everything into memory. I might be doi...
Afterworld asked 7/10, 2013 at 15:36
0
I have an NSFileWrapper with some content. I want to save it (writeToURL...:), add new content to it and save it again.
I would like to avoid writing again and again the same files. So, if I unde...
Tantalous asked 10/3, 2014 at 12:5
2
Solved
Lets say I have an NSFileWrapper directory. This directory is made up of several levels of directories and files. Some of the files are large. Are all these files loaded into memory, or are they la...
Jhansi asked 29/11, 2012 at 8:20
1
I have an UIDocument which I'd like to be comprised of (1) a txt file and (2) several jpg images. I put the txt and all the jpgs into a NSFileWrapper.
When I load the UIDocument, I need the info i...
Nunuance asked 11/6, 2012 at 16:17
3
Solved
I have an app that uses a UIDocument that is NSFileWrapper based. My file wrapper is a directory named "XXX.cp", with two sub-files "photo.data" and "photo.metadata". It seems to save and load docu...
Atory asked 21/4, 2012 at 15:26
2
I'm using NSFileWrapper for my package document. Sometimes, when I request the data of a file inside the package I get nil.
This is how I query the data of a file inside the package:
- (NSData*) ...
Narco asked 16/10, 2012 at 9:21
2
I have a relativley simple app which persists data to a plist file located in the documents folder. The data loads into a UITableView at startup. The user can then edit, delete or add records and a...
Rumal asked 7/12, 2011 at 1:1
2
Solved
How do you efficiently check if two files are the same (have the same data) in Cocoa?
Context: I'm writing a program that receives a file as input (input file) and copies it into a directory. If t...
Symbolics asked 28/8, 2012 at 18:42
1
Solved
I'm making a document-based Cocoa app in which the document is dynamic a collection of files (users can add or remove files). In particular, the Save and Open operations should be as fast as possib...
Dingman asked 26/8, 2012 at 13:46
1
Solved
One of my apps will, very occasionally, report its Storage (via Settings -> General -> Usage -> Storage) as 4GB when, in reality, the total size of all files in the app's Sandbox (Documents, Librar...
Jala asked 27/1, 2012 at 18:57
1
Solved
I have a basic NSTextView with rich text and graphics enabled (in IB). What I'd like to get is the path and filename of any images dragged in so I can pass those to another class.
I'm new to NSAt...
Negativism asked 4/2, 2012 at 3:41
1
© 2022 - 2024 — McMap. All rights reserved.