Contents

matchesAppleEventCode(_:)

Returns a Boolean value indicating whether a primary or secondary Apple event code in the receiver matches the passed code.

Declaration

func matchesAppleEventCode(_ appleEventCode: FourCharCode) -> Bool

Parameters

  • appleEventCode:

    An Apple event code to compare against the receiver’s primary or secondary codes.

Return Value

true if the receiver’s primary four-character Apple event code or any of its secondary codes (its synonyms) matches code; otherwise, false.

See Also

Getting and comparing Apple event codes