• 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: Building NSObject question/Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building NSObject question/Help


  • Subject: Re: Building NSObject question/Help
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 26 May 2005 01:57:02 +0200

Mark,

On 25.5.2005, at 18:34, Mark Thomas wrote:

I was wondering if anybody had any idea's on what is needed so I can do
serialization with my custom NSObject so it will be stored/loaded when the
NSDictionary tries to store information out (I'm storing the NSDictionary in
my app prefs presently)

Sure: you have to encode your object into a plist-conforming class.

That would be, most probably, an NSData or perhaps an NSString. The former tends to be easier, for you can just use archivation; the latter tends to be more convenient and flexible, for in that case you can easily access the defaults externally, without launching the application.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: Building NSObject question/Help (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Function calling
  • Next by Date: Re: Function calling
  • Previous by thread: Re: Building NSObject question/Help
  • Next by thread: Re: Building NSObject question/Help
  • Index(es):
    • Date
    • Thread