<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRectFillListUsingOperation",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@F@NSRectFillListUsingOperation"
  },
  "title" : "NSRectFillListUsingOperation"
}
-->

# NSRectFillListUsingOperation

Fills the rectangles in a list using the current fill color and specified compositing operation.

```
extern void NSRectFillListUsingOperation(const NSRect *rects, NSInteger count, NSCompositingOperation op);
```

## Parameters

`rects`

A pointer to an array of <doc://com.apple.documentation/documentation/Foundation/NSRect> structures representing the rectangles to fill.

`count`

The number of rectangles in the `rects` parameter.

`op`

The compositing operation to use when filling the rectangles.

## Discussion

Fills a list of `count` rectangles with the current fill color, using the compositing operation `op`. For example, specifying [`NSCompositeSourceOver`](/documentation/AppKit/NSCompositeSourceOver) will blend with what’s already been drawn.

For more information, see [`NSCompositingOperation`](/documentation/AppKit/NSCompositingOperation).

---

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)