Ray's playground

 

Memento(Chapter 23 of Pro Objective-C Design Patterns for iOS)

You’d think about using the pattern when all of the following applies:
􀀁 You need to save the object’s state as a snapshot or a portion of it, which can be restored later.
􀀁 You need to hide the interface with which obtaining the state would expose the implantation details.

posted on 2012-05-18 13:44  Ray Z  阅读(291)  评论(0编辑  收藏  举报

导航