• 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
RE: Re: Image export/import question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Re: Image export/import question


  • Subject: RE: Re: Image export/import question
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sun, 3 Oct 2004 19:38:30 +0200

At 18:35 Uhr +0200 03.10.2004, Peter Karlsson wrote:
But I need both of you to agree
on a method before I start because I know to little about this to say if
any of you have the best method.

Basically, Sherm and I were suggesting the same thing with regard to NSFileWrapper. It's just that he wasn't too clear about what dictionaries he was talking about. As he clarified in his reply, you add the NSFileWrappers for your image files and your XML file to your directory by creating a directory NSFileWrapper and handing it a dictionary containing all the NSFileWrappers for the files. Not sure what the keys for that dictionary are, though. The file names?

The other option I was talking about, saving your image files as NSData in your NSDictionary, isn't really the desired option in most cases. It's only useful if you want to make it harder for your users to look at the image inside your file or so.

I haven't really ever used NSFileWrapper. So, when in doubt, do what Sherm tells you. It's more likely that he is right than I am.

But, to save your NSMutableArray, you'll have to use NSPropertyListSerialization to generate XML from your dictionary inside an NSData. Because NSData is the only way you can get your data into an NSFileWrapper, AFAIK.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: NSTextView crashes with web content
  • Next by Date: Re: Any news about Cocoa Java ?
  • Previous by thread: Re: Image export/import question
  • Next by thread: Re: Binding/KVC : implicit and explicit invocation of description method
  • Index(es):
    • Date
    • Thread