10

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?

aryaxt
  • 76,198
  • 92
  • 293
  • 442
  • 2
    Naturally you've read [the relevant documentation](http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/DistrObjects/Concepts/connections.html#//apple_ref/doc/uid/20000761-96933); can you make your question more specific? – jscs Nov 22 '11 at 06:20

2 Answers2

8

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

Nishant Tyagi
  • 9,893
  • 3
  • 40
  • 61
Parag Bafna
  • 22,812
  • 8
  • 71
  • 144
  • 1
    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. – ratsimihah May 01 '18 at 12:56
-1

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.

NSResponder
  • 16,861
  • 7
  • 32
  • 46