<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextAttachmentCellProtocol/cellBaselineOffset()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextAttachmentCell(im)cellBaselineOffset"
  },
  "title" : "cellBaselineOffset()"
}
-->

# cellBaselineOffset()

Returns the text position where you draw the attachment cell’s image, relative to the current point established in the glyph layout.

```
nonisolated func cellBaselineOffset() -> NSPoint
```

## Discussion

The image should be drawn so its lower-left corner lies on this point.

## See Also

  <doc://com.apple.documentation/documentation/Foundation/FileWrapper/icon>



---

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)