---
title: conversationIdentifier
framework: AppKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.0+]
path: appkit/nstextinput/conversationidentifier
---

# conversationIdentifier

Returns a number used to identify the receiver’s context to the input server.

## Declaration

```occ
- (NSInteger) conversationIdentifier;
```

## Return Value

Return Value The identifying number of the receiver.

## Discussion

Discussion Each text view within an application should return a unique identifier (typically its address). However, multiple text views sharing the same text storage must all return the same identifier.

## See Also

### Deprecated methods

- [hasMarkedText](appkit/nstextinput/hasmarkedtext.md)
- [markedRange](appkit/nstextinput/markedrange.md)
- [selectedRange](appkit/nstextinput/selectedrange.md)
- [setMarkedText:selectedRange:](appkit/nstextinput/setmarkedtext:selectedrange:.md)
- [unmarkText](appkit/nstextinput/unmarktext.md)
- [validAttributesForMarkedText](appkit/nstextinput/validattributesformarkedtext.md)
- [attributedSubstringFromRange:](appkit/nstextinput/attributedsubstringfromrange:.md)
- [insertText:](appkit/nstextinput/inserttext:.md)
- [characterIndexForPoint:](appkit/nstextinput/characterindexforpoint:.md)
- [firstRectForCharacterRange:](appkit/nstextinput/firstrectforcharacterrange:.md)
- [doCommandBySelector:](appkit/nstextinput/docommandbyselector:.md)
