---
title: invalidate
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsconnection/invalidate
---

# invalidate

Invalidates the receiver.

## Declaration

```occ
- (void) invalidate;
```

## Discussion

Discussion After withdrawing the ports the receiver has registered with the current run loop, invalidate posts an NSConnectionDidDieNotification and then invalidates all remote objects and exported local proxies.

## See Also

### Related Documentation

- [remove(_:forMode:)](foundation/runloop/remove(_:formode:).md)

### Configuring Instances

- [requestTimeout](foundation/nsconnection/requesttimeout.md)
- [replyTimeout](foundation/nsconnection/replytimeout.md)
- [independentConversationQueueing](foundation/nsconnection/independentconversationqueueing.md)
- [addRequestMode:](foundation/nsconnection/addrequestmode:.md)
- [removeRequestMode:](foundation/nsconnection/removerequestmode:.md)
- [requestModes](foundation/nsconnection/requestmodes-c.property.md)
- [valid](foundation/nsconnection/valid.md)
