---
title: "setValues(_:for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsopenglcontext/setvalues(_:for:)"
---

# setValues(_:for:)

Sets the value of the specified parameter.

## Declaration

```swift
func setValues(_ vals: UnsafePointer<GLint>, for param: NSOpenGLContext.Parameter)
```

## Parameters

- `vals`: The new value (or values) for the parameter.
- `param`: The parameter you want to modify. For a list of parameters, see doc://com.apple.appkit/documentation/AppKit/NSOpenGLContext/Parameter.

## See Also

### Context Parameter Handling

- [getValues(_:for:)](appkit/nsopenglcontext/getvalues(_:for:).md)
