Contents

GPUEjectPolicy

The preferred system action when an external GPU is connected from the system.

Possible Values

relaunch

Set this value to allow macOS to quit and relaunch your app with another GPU. Your app can implement the application(_:willEncodeRestorableState:) method to save any state before it quits, and it can implement the application(_:didDecodeRestorableState:) method to restore any saved state after it relaunches.

wait

Set this value to manually respond to the safe disconnect request. Your app must register and respond to the removalRequested notification posted by Metal. macOS waits for your app to remove all references to the external GPU before notifying the user that it’s safe to disconnect the GPU.

kill

Set this value to allow macOS to force your app to quit.

ignore

Tells the system to ignore the disconnect message. Don’t use this key in new macOS apps.

See Also

Graphics