Search code examples
iphoneobjective-ccocoa-touchnskeyedarchiver

Do I need to release after finishDecoding using NSKeyedUnarchiver?


Is finishDecoding also handling the release of the NSKeyedUnarchiver instance? It doesn't say in the Class Reference.


Solution

  • No, you have to handle it yourself.
    You can easily verify it in Archives and Serializations Programming Guide, look at the examples, both methods (finishDecoding and release) are called.