• 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: Saving arbitrary types as property list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving arbitrary types as property list


  • Subject: Re: Saving arbitrary types as property list
  • From: Fraser Speirs <email@hidden>
  • Date: Fri, 8 Mar 2002 16:22:34 +0000

On Friday, March 8, 2002, at 12:31 PM, Marcel Weiher wrote:

Is it possible to implement some protocol on my own objects such that I can perform writeToFile:atomically: on an NSArray of them and have it stored in an xml property list?

Does it have to be an XML property list? If another XML format is acceptable, the MPWXmlKit includes an XML NSArchiver/NSUnarchiver pair, which means you just have to implement the NSCoding protocol.

That sounds interesting. The only reason I wanted to have it in a plist is that one can edit them in the Property List Editor tool. Not a big loss.

But I take it from your answer that I can't do what I wanted with standard plists?

Fraser
--
Fraser Speirs
Department of Computing Science - University of Glasgow
Room G161, 17 Lillybank Gardens, Glasgow G12 8QQ

t: 0141 339 8855 ext.0917
e: email@hidden w: www.dcs.gla.ac.uk/~speirsfr
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Saving arbitrary types as property list
      • From: Marcel Weiher <email@hidden>
References: 
 >Re: Saving arbitrary types as property list (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Re: Complete Cocoa API Reference posted to Apple Developer Site
  • Next by Date: Re: Complete Cocoa API Reference posted to Apple Developer Site
  • Previous by thread: Re: Saving arbitrary types as property list
  • Next by thread: Re: Saving arbitrary types as property list
  • Index(es):
    • Date
    • Thread