Instance Method

keyWithAppleEventCode:

Given an Apple event code that identifies a property or element class, returns the key for the corresponding attribute, one-to-one relationship, or one-to-many relationship.

Declaration

- (NSString *)keyWithAppleEventCode:(FourCharCode)appleEventCode;

Parameters

appleEventCode

An Apple event code that identifies a property or element class.

Return Value

The key that corresponds to the property or element class identified by appleEventCode in the receiver or, if none exists, in a class description in the receiver’s superclasses.

The four-character Apple event code associated with the attribute or relationship identified by key Returns 0 if no such attribute or relationship is found. Returns nil if it cannot find any such attribute or relationship.

See Also

Getting attribute and relationship information

- hasOrderedToManyRelationshipForKey:

Returns a Boolean value indicating whether the described class has an ordered to-many relationship identified by the specified key.

- hasPropertyForKey:

Returns a Boolean value indicating whether the described class has a property identified by the specified key.

- hasReadablePropertyForKey:

Returns a Boolean value indicating whether the described class has a readable property identified by the specified key.

- hasWritablePropertyForKey:

Returns a Boolean value indicating whether the described class has a writable property identified by the specified key.

- isReadOnlyKey:

Returns a Boolean value indicating whether a specified property in the receiver is read-only.

Deprecated
- typeForKey:

Returns the name of the declared type of the attribute or relationship identified by the passed key.