<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSComboBoxCell/removeItem(withObjectValue:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSComboBoxCell(im)removeItemWithObjectValue:"
  },
  "title" : "removeItem(withObjectValue:)"
}
-->

# removeItem(withObjectValue:)

Removes all occurrences of the specified object from the combo box’s internal item list.

```
func removeItem(withObjectValue object: Any)
```

## Parameters

`object`

The object to remove from the combo box’s internal item list. Objects are considered equal if they have the same id or if `isEqual:` returns <doc://com.apple.documentation/documentation/Swift/true>.

## Discussion

This method logs a warning if [`usesDataSource`](/documentation/AppKit/NSComboBoxCell/usesDataSource) is <doc://com.apple.documentation/documentation/Swift/true>.

## See Also

[`indexOfItem(withObjectValue:)`](/documentation/AppKit/NSComboBoxCell/indexOfItem(withObjectValue:))

Searches the combo box’s internal item list for the given object and returns the matching index number.



---

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)