<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/init(imageCell:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCell(im)initImageCell:"
  },
  "title" : "init(imageCell:)"
}
-->

# init(imageCell:)

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

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

## Parameters

`image`

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

## Return Value

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

## Discussion

This is one of four designated initializers you must implement when subclassing. See [`Designated Initializers`](/documentation/AppKit/NSCell#Designated-Initializers) for the complete list.

## See Also

[`class NSCell`](/documentation/AppKit/NSCell)

A mechanism for displaying text or images in a view object without the overhead of a full [`NSView`](/documentation/AppKit/NSView) subclass.



---

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)