<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.6.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCachedImageRep/rect",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCachedImageRep(im)rect"
  },
  "title" : "rect"
}
-->

# rect

Returns the rectangle where the representation is cached.

```
- (NSRect) rect;
```

## Return Value

The rectangle in the associated offscreen window where the receiver’s image is located.

## See Also

[`var size: NSSize`](/documentation/AppKit/NSImageRep/size)

The size of the image representation, measured in points in the user coordinate space.



---

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)