---
title: "makeItem(withIdentifier:owner:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsscrubber/makeitem(withidentifier:owner:)"
---

# makeItem(withIdentifier:owner:)

Creates or returns a reusable item object with the specified identifier.

## Declaration

```swift
func makeItem(withIdentifier itemIdentifier: NSUserInterfaceItemIdentifier, owner: Any?) -> NSScrubberItemView?
```

## Parameters

- `itemIdentifier`: The string that identifies the type of item you want. This is the identifier you specified when registering the item view. The parameter must not be nil.
- `owner`: The owner of this item. If the scrubber item is loaded from a nib then this object is set as the nib’s File’s Owner object. Set this parameter to nil for scrubber items loaded from classes.

## Return Value

Return Value A valid NSScrubberItemView object.

## See Also

### Creating scrubber items

- [register(_:forItemIdentifier:)](appkit/nsscrubber/register(_:foritemidentifier:)-2rb69.md)
- [register(_:forItemIdentifier:)](appkit/nsscrubber/register(_:foritemidentifier:)-6jye0.md)
