您的位置:首页 > 移动开发 > Objective-C

Proxy(Chapter 22 of Pro Objective-C Design Patterns for iOS)

2012-05-18 11:13 721 查看
You’d naturally think about using the pattern when 􀀁 You need a remote proxy that provides a local representative for an object in a different address space or in the network. 􀀁 You need a virtual proxy to create heavy-weighted objects on demand. We will implement that kind of proxy in a code example later in this chapter. 􀀁 You need a protection proxy to control access to the original object based on different access rights. 􀀁 You need a smart-reference proxy for counting the number of references to the real object for memory management. It can also be used for locking the real object so no other objects can change it.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: