---
title: "init(imageCell:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nscell/init(imagecell:)"
---

# init(imageCell:)

Returns an NSCell object initialized with the specified image and set to have the cell’s default menu.

## Declaration

```swift
init(imageCell image: NSImage?)
```

## Parameters

- `image`: The image to use for the cell. If this parameter is nil, no image is set.

## Return Value

Return Value An initialized NSCell object, or nil if the cell could not be initialized.

## Discussion

Discussion This is one of four designated initializers you must implement when subclassing. See Designated Initializers for the complete list.

## See Also

### Related Documentation

- [NSCell](appkit/nscell.md)

### Initializing a Cell

- [init(textCell:)](appkit/nscell/init(textcell:).md)
