Model object with NSImage property in ZIP file
Model object with NSImage property in ZIP file
- Subject: Model object with NSImage property in ZIP file
- From: Luc Van Bogaert <email@hidden>
- Date: Wed, 26 Dec 2012 10:30:45 +0100
Hi,
The NSDocument object in my document-based app contains an array of custom objects, which in their own turn contain an NSImage property. Eg. my document represents a "book", the pages are stored in an array, and each page has its own associated "icon" stored as a NSImage property.
I'm using NSKeyedArchiver for storing and loading the documents, and this works as expected. I want to make my documents available for download on a web site, and to facilitate this I decided to put each document in its own zip-archive, using the standard Finder "Compress" functionality. Again, this almost works as expected, with just one problem: after downloading, decompressing the archive and loading the document into my app, all the pages seem to have "lost" their icon.
--
Luc Van Bogaert
_______________________________________________
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