An object that specifies how user interface elements resize themselves when space is constrained.
An instance of
NSUserInterfaceCompressionOptions contains zero or more options. Because a compression options object behaves like a set, you can use common operations like intersection, union and subtraction to interact with instances and their members.
You can access system-defined options through the class methods detailed in Creating Standard Options, or you can create your own custom options with the
To compare two different compression options objects, use the methods described in the Comparing Compression Options section.
Creating a Compression Option
Creates a compression options object containing no options.
Creating Standard Options
An option that represents the union of all standard compression options.
Comparing Compression Options
A Boolean value that denotes whether the option is empty.
Determines whether the supplied compression options are all present in the current instance.
Determines whether the supplied compression options intersect with the current instance's options.
Combining Compression Options
Touch Bar Items
A UI control shown in the Touch Bar on supported models of MacBook Pro.
A bar item that contains a responder of your choice, such as a view, a button, or a scrubber (an instance of the
A bar item that provides a two-state control that can expand into its second state, showing the contents of a bar that it owns.