Re: Image export/import question
Re: Image export/import question
- Subject: Re: Image export/import question
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sat, 2 Oct 2004 13:50:18 +0200
At 12:56 Uhr +0200 02.10.2004, Peter Karlsson wrote:
In the app I am developing there is a import and export feature. File
format is xml. This works as expected.
What kind of XML? A Property List like you get from NSDictionary's
writeToFile:atomically:?
When the user imports or exports this file I also want some .tiff images to
follow the file. These images is located in a folder inside my app and they
are images that the user have added to my app so they are not the same
images from time to time.
Joar already told you about messing with your app. It won't work if
your app is on a server or the user doesn't have admin permissions
and the app is in /Applications. Don't do it.
The importent thing is that I want only one
single file when importing/exporting. Is there a preferred way to do this?
If it's a property list, you can create NSData from your NSImage,
and then put that NSImage in your NSDictionary/NSArray/whatever and
just write that to the file using writeToFile:atomically:.
--
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