---
title: "convertSizeToBase:"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsview/convertsizetobase:"
---

# convertSizeToBase:

Converts the size from the view’s coordinate system to the base coordinate system.

## Declaration

```occ
- (NSSize) convertSizeToBase:(NSSize) size;
```

## Parameters

- `size`: A size in the view’s coordinate system

## Return Value

Return Value The size converted to the base coordinate system.

## Discussion

Discussion See Transforming View Coordinates To and From Base Space for a description of view coordinate to base coordinate conversion.

## See Also

### Methods

- [lockFocus()](appkit/nsview/lockfocus().md)
- [lockFocusIfCanDraw()](appkit/nsview/lockfocusifcandraw().md)
- [lockFocusIfCanDraw(in:)](appkit/nsview/lockfocusifcandraw(in:).md)
- [unlockFocus()](appkit/nsview/unlockfocus().md)
- [scroll(_:by:)](appkit/nsview/scroll(_:by:).md)
- [convertPointToBase:](appkit/nsview/convertpointtobase:.md)
- [convertPointFromBase:](appkit/nsview/convertpointfrombase:.md)
- [convertSizeFromBase:](appkit/nsview/convertsizefrombase:.md)
- [convertRectToBase:](appkit/nsview/convertrecttobase:.md)
- [convertRectFromBase:](appkit/nsview/convertrectfrombase:.md)
- [performMnemonic:](appkit/nsview/performmnemonic:.md)
- [shouldDrawColor()](appkit/nsview/shoulddrawcolor().md)
- [allocateGState()](appkit/nsview/allocategstate().md)
- [gState()](appkit/nsview/gstate().md)
- [setUpGState()](appkit/nsview/setupgstate().md)
