discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML-style plists with the [NSDictionary writeToFile:]


From: Torli Birnbauer
Subject: Re: XML-style plists with the [NSDictionary writeToFile:]
Date: Tue, 28 Apr 2009 18:09:55 -0400

I'm afraid something is missing here
    ‘NSProperyListSerialization’ undeclared

AFAIK, serialization is done with
    - (void)encodeObject:(id)anObject forKey:(NSString *)aKey
and
    - (id)decodeObjectForKey:(NSString *)aKey


On Tue, 2009-04-28 at 12:40 -0700, hns wrote:

[[NSProperyListSerialization dataFromPropertyList:dict
format:NSPropertyListXMLFormat_v1_0 errorDescription:&err]
writeToFile: @"./opts.out.plist" atomically: YES];

-- hns

_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

reply via email to

[Prev in Thread] Current Thread [Next in Thread]