---
title: representedObject
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmenuitem/representedobject
---

# representedObject

The object represented by the menu item.

## Declaration

```swift
var representedObject: Any? { get set }
```

## Discussion

Discussion By setting a represented object for a menu item, you make an association between the menu item and that object. The represented object functions as a more specific form of tag that allows you to associate any object, not just an arbitrary integer, with the items in a menu.

## See Also

### Related Documentation

- [tag](appkit/nsmenuitem/tag.md)
