Organize a file
Organize a file
- Subject: Organize a file
- From: Leonardo <email@hidden>
- Date: Sun, 28 Nov 2010 01:54:06 +0100
- Thread-topic: Organize a file
...and now it comes the hardest part of my app.
I have to decide about the structure of my document file so I ask here to
get some hint.
A) My app should download the doc file from internet and show its content.
B) The file always contains a dict.plist NSDictionary.
C) The file could contains some images.jpg or png, or tiff...
D) The file could contain a QT movie I have to play in streaming.
Hypotheses.....
1)
Save the doc file as filePackage and put the dict.plist, all the image
files, and the movie file within the package.
At runtime my app should then download, one by one, all the files from the
filePackage (which now on the server looks like a folder - not so safe).
This solution lets me easily make the streaming from the movie file.
2) Save the doc to one unique file (I would prefer this solution). If so, in
case the doc contains a movie file, I need to know how to point to the movie
data and begin the streaming. I have already a class which downloads files,
even with an offset from the beginning of the file.
Questions:
Do I need CoreData?
Can I use the old "Handle and Addresses" method to create the doc file? I
mean, I put at the beginning of the file a "fixed size header" containing
the addresses of the images block and the movie block, then firstly I
download the header only, then I can download the image files thanks to the
offset... But, how to begin a (movie) streaming from an URL and an offset?
Thanks
Leonardo
_______________________________________________
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