• 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: How to save a Dictionary Network to a plist file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to save a Dictionary Network to a plist file?


  • Subject: Re: How to save a Dictionary Network to a plist file?
  • From: Dave <email@hidden>
  • Date: Sun, 24 Jan 2016 15:12:22 +0000

Hi,

I did a bit of studying about save/restoring networks in general and it’s not that straight forward if you want a self-referential put back in place after it is restored. From looking at what the standard archiver/unarchiver does it is exactly what I want for now and is really fast and easy to use (although having to ensure everything conforms to NSCoding is a bit of a pain - see below).

We do need a more flexible way of doing it though but I think we will use this for now and develop an SQLite database, this has the advantage of being totally portable. We can use the archive file format to store networks until we are ready to commit them to the database.

I’m really impressed with the speed of the archiver though and I’m pleased you suggest I use it.

One thing that would be super cool is if there was a property attribute for this, e.g.

@property (nonatomic,copy,archive)	NSString*			pString;

And it would synthesize the initWithCoder, encodeWithCoder and copyWithZone methods.

Thanks again
All the Best
Dave

_______________________________________________

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


  • Follow-Ups:
    • Re: How to save a Dictionary Network to a plist file?
      • From: Jens Alfke <email@hidden>
References: 
 >How to save a Dictionary Network to a plist file? (From: Dave <email@hidden>)
 >Re: How to save a Dictionary Network to a plist file? (From: email@hidden)
 >Re: How to save a Dictionary Network to a plist file? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Problem Archiving/Un-archiving Custom Objects
  • Next by Date: Re: NSTextFields will not fully justify in 10.11
  • Previous by thread: Re: How to save a Dictionary Network to a plist file?
  • Next by thread: Re: How to save a Dictionary Network to a plist file?
  • Index(es):
    • Date
    • Thread