---
title: rect
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nscachedimagerep/rect
---

# rect

Returns the rectangle where the representation is cached.

## Declaration

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

## Return Value

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

## See Also

### Related Documentation

- [size](appkit/nsimagerep/size.md)

### Getting Data

- [window](appkit/nscachedimagerep/window.md)
