• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Model object with NSImage property in ZIP file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSPopover will not morph or resize
  • Next by Date: Dumb ARC question
  • Previous by thread: Re: Window resizing autolayout?
  • Next by thread: Dumb ARC question
  • Index(es):
    • Date
    • Thread