<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSquareLineCapStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSSquareLineCapStyle"
  },
  "title" : "NSSquareLineCapStyle"
}
-->

# NSSquareLineCapStyle

Specifies a square line cap style for endpoints for an open path when stroked.

```
static const NSLineCapStyle NSSquareLineCapStyle;
```

## Discussion

Here is an example of the appearance of this style:

![Diagram that shows the square line cap style.](images/com.apple.appkit/media-2934722@2x.png)

---

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)