Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objective-C - What are some uses of the NSProxy class? [closed]

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?

like image 373
aryaxt Avatar asked Nov 22 '11 05:11

aryaxt


People also ask

What is Nsproxy?

An abstract superclass defining an API for objects that act as stand-ins for other objects or for objects that don't exist yet.

What is implementation in Objective-C?

Implementation Files in Objective-C Implementation files implement all those things that we declare to be available in the header files. Every method that we say a class has must be defined with all its necessary code in the implementation file.


1 Answers

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

like image 105
Parag Bafna Avatar answered Oct 12 '22 09:10

Parag Bafna