<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSControl/draw(withExpansionFrame:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSControl(im)drawWithExpansionFrame:inView:"
  },
  "title" : "draw(withExpansionFrame:in:)"
}
-->

# draw(withExpansionFrame:in:)

Performs custom expansion tool tip drawing.

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

## Parameters

`contentFrame`

The frame in which to draw.

`view`

The view in which to draw.

## Discussion

Note that the view may be different from the original view in which the text appeared.

---

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)