Instance Method

setSelectedComposition(_:)

Sets a composition as selected in the composition picker view.

Declaration

func setSelectedComposition(_ composition: QCComposition!)

Parameters

composition

The composition to select. Pass nil if you don’t want to select a composition. The behavior is undefined if you pass a composition that is not in the list of compositions that are currently in the composition picker view.

See Also

Managing the Composition Picker View

func setCompositionsFromRepositoryWithProtocol(String!, andAttributes: [AnyHashable : Any]!)

Sets the compositions in the composition picker view to those that match the specified criteria.

Deprecated
func compositions() -> [Any]!

Returns the list of compositions that are currently in the composition picker view.

Deprecated
func setAllowsEmptySelection(Bool)

Sets whether to allow an empty selection in the composition picker view.

Deprecated
func allowsEmptySelection() -> Bool

Retrieves the empty-selection state of the composition picker view.

Deprecated
func setCompositionAspectRatio(NSSize)

Sets the aspect ratio used to display compositions in the composition picker view.

Deprecated
func compositionAspectRatio() -> NSSize

Retrieves the aspect ratio used to display compositions in the composition picker view.

Deprecated
func selectedComposition() -> QCComposition!

Returns the composition that is currently selected in the composition picker view.

Deprecated