What are some uses of the NSProxy class. Why would you want to be able to have the description of an object that doesn't exist?
Objective-C - What are some uses of the NSProxy class? [closed]
Asked Answered
Naturally you've read the relevant documentation; can you make your question more specific? –
Vivie
The NSProxy class provides a basic implementation of a class whose instances are used to stand in for other objects. We need NSProxy to implement transparent distributed messaging or for lazy instantiation of object.
NSProxy Class Reference
Distributed object programming topics
I'd say because you copy-pasted the doc, which anyone can find on Google. A personalized answer with example use cases would be appreciated, but this answer has already been accepted. –
Tasker
An NSProxy
is an object that forwards messages to an object on a different thread, in a different process, or even on a different host. Read the documentation on Distributed Objects.
So you can't use NSProxy for anything else than Distributed Objects? –
Antimonyl
NSProxy is the means by which distributed objects are implemented. It has no other purpose. –
Unbridled
© 2022 - 2024 — McMap. All rights reserved.