<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBrowserDelegate/browser(_:setObjectValue:forItem:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSBrowserDelegate(im)browser:setObjectValue:forItem:"
  },
  "title" : "browser(_:setObjectValue:forItem:)"
}
-->

# browser(_:setObjectValue:forItem:)

Sets the object that the specified item uses to draw its contents to the specified object.

```
@MainActor optional func browser(_ browser: NSBrowser, setObjectValue object: Any?, forItem item: Any?)
```

## Parameters

`browser`

The browser.

`object`

The object to set.

`item`

The item whose object is set.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)