---
title: rootProxy
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsconnection/rootproxy
---

# rootProxy

The proxy for the root object of the receiver’s peer in another application or thread.

## Declaration

```occ
@property (retain, readonly) NSDistantObject * rootProxy;
```

## Discussion

Discussion The proxy returned can change between invocations if the peer NSConnection object’s root object is changed. note: If the NSConnection object uses separate send and receive ports and has no peer, when you invoke rootProxy it will block for the duration of the reply timeout interval, waiting for a reply.

## See Also

### Related Documentation

- [rootObject](foundation/nsconnection/rootobject-c.property.md)

### Getting a Remote Object

- [connectionWithRegisteredName:host:](foundation/nsconnection/connectionwithregisteredname:host:.md)
- [connectionWithRegisteredName:host:usingNameServer:](foundation/nsconnection/connectionwithregisteredname:host:usingnameserver:.md)
- [rootProxyForConnectionWithRegisteredName:host:](foundation/nsconnection/rootproxyforconnectionwithregisteredname:host:.md)
- [rootProxyForConnectionWithRegisteredName:host:usingNameServer:](foundation/nsconnection/rootproxyforconnectionwithregisteredname:host:usingnameserver:.md)
- [remoteObjects](foundation/nsconnection/remoteobjects.md)
- [localObjects](foundation/nsconnection/localobjects.md)
