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

How to save a Dictionary Network to a plist file?


  • Subject: How to save a Dictionary Network to a plist file?
  • From: Dave <email@hidden>
  • Date: Thu, 21 Jan 2016 17:05:10 +0000

Hi All,

I have Network of Dictionaries containing “LTWNodeInfo” Classes. LTWNodeInfo contains a Child Dictionary which in turn contains other LTWNodeInfo. The Key to these dictionaries is a Unique ID string called the NodeID.

@interface LTWNodeInfo
@property (copy)    NSString*				pNodeID;
@property (copy)    NSString*				pNodeType;
@property (copy)	NSMutableDictionary*		pNodeChildDict;
@property (copy)	LTWNodeInfo*				pNodeParentt;

@property (copy)	NSString*				pNodePayloadString1;
@property (copy)	NSString*				pNodePayloadString2;
@property (copy)	NSString*				pNodePayloadString3;
@end


This all works great and now I’d like to save this to a plist file and load it later on.

My question is, what is the best way to do this? I was thinking I could make a dictionary out of the LTWNodeInfo Object and then create a Parallel Network using the dictionary versions, (I’d just use the Property names as the Key), but I was wondering if there is an easier way to do this?

Any suggestions greatly appreciated.

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: email@hidden
    • Re: How to save a Dictionary Network to a plist file?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: 32-bit / 64-bit roadmap
  • Next by Date: Re: How to save a Dictionary Network to a plist file?
  • Previous by thread: Re: 32-bit / 64-bit roadmap
  • Next by thread: Re: How to save a Dictionary Network to a plist file?
  • Index(es):
    • Date
    • Thread