Contents

appleEventCode(forKey:)

Returns the Apple event code for the specified attribute or relationship in the receiver.

Declaration

func appleEventCode(forKey key: String) -> FourCharCode

Parameters

  • key:

    The identifying key for an attribute or relationship of the receiver.

Return Value

The four-character Apple event code associated with the attribute or relationship identified by key in the receiver or, if none exists, in the class description for the receiver’s superclass. Returns 0 if no such attribute or relationship is found.

See Also

Getting and comparing Apple event codes