Function

DeleteGestaltValue

Deletes a Gestalt selector code so that it is no longer recognized by Gestalt.

Declaration

OSErr DeleteGestaltValue(OSType selector);

Parameters

selector

The selector code you want to delete. This should be a four-character sequence similar to those defined in Constants.

Return Value

A result code. See Gestalt Manager.

Discussion

After calling this function, subsequent query or replacement calls for the selector code will fail as if the selector had never been installed.

In macOS, the selector is on a per-context basis. You cannot use this function to affect another process.

See Also

Getting and Setting Gestalt Selector Codes and Values

Gestalt

Obtains information about the operating environment.

Deprecated
NewGestaltValue

Installs a new Gestalt selector code and a value that Gestalt returns for that selector.

Deprecated
SetGestaltValue

Sets the value the function Gestalt will return for a specified selector code, installing the selector if it was not already installed.

Deprecated
ReplaceGestaltValue

Replaces the value that the function Gestalt returns for a specified selector code with the value provided to the function.

Deprecated