---
title: NSNonZeroWindingRule
framework: appkit
role: symbol
role_heading: Global Variable
path: appkit/nsnonzerowindingrule
---

# NSNonZeroWindingRule

Specifies the non-zero winding rule.

## Declaration

```occ
static const NSWindingRule NSNonZeroWindingRule;
```

## Discussion

Discussion Count each left-to-right path as +1, and each right-to-left path as -1. If the sum of all crossings is 0, the point is outside the path. If the sum is nonzero, the point is inside the path and the region containing it is filled. This is the default winding rule.

## See Also

### Deprecated Constants

- [NSEvenOddWindingRule](appkit/nsevenoddwindingrule.md)
