<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOpenGLContext/setValues(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSOpenGLContext(im)setValues:forParameter:"
  },
  "title" : "setValues(_:for:)"
}
-->

# setValues(_:for:)

Sets the value of the specified parameter.

```
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 [`NSOpenGLContext.Parameter`](/documentation/AppKit/NSOpenGLContext/Parameter).

---

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)