---
title: "draw(withExpansionFrame:in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscell/draw(withexpansionframe:in:)"
---

# draw(withExpansionFrame:in:)

Instructs the receiver to draw in an expansion frame.

## Declaration

```swift
func draw(withExpansionFrame cellFrame: NSRect, in view: NSView)
```

## Parameters

- `cellFrame`: The frame in which to draw.
- `view`: The view in which to draw. This view may be different from the original view that the cell appeared in.

## Discussion

Discussion This method allows the cell to perform custom expansion tool tip drawing. By default, NSCell simply calls draw(withFrame:in:).

## See Also

### Managing Expansion Frames

- [expansionFrame(withFrame:in:)](appkit/nscell/expansionframe(withframe:in:).md)
