Hi all,
I am working out with teh method writeToFile: atomically: with the NSArray and NSDictionary.
However i tried adding some simple strings to dictionary as key and values.
The dictionary got saved successfully.
However i added some custom object (say itemObject of type Item) to dictionary with some unique NSString as key.
But writeToFile: is returning me NO
The Item class implemented encodeWithCoder and decodeWithCoder methods to encode/decode the properties.
I can succesfully persist the same Object using NSKeyedArchiver.
Why its not working with writeToFile: ? ?
Thanks
I am working out with teh method writeToFile: atomically: with the NSArray and NSDictionary.
However i tried adding some simple strings to dictionary as key and values.
The dictionary got saved successfully.
However i added some custom object (say itemObject of type Item) to dictionary with some unique NSString as key.
But writeToFile: is returning me NO
The Item class implemented encodeWithCoder and decodeWithCoder methods to encode/decode the properties.
I can succesfully persist the same Object using NSKeyedArchiver.
Why its not working with writeToFile: ? ?
Thanks