Instance Method

isReadOnlyKey:

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

Declaration

- (BOOL)isReadOnlyKey:(NSString *)key;

Parameters

key

The identifying key for a property of the receiver.

Return Value

YES if the property specified by key exists in the receiver or in the NSScriptClassDescription for any superclass, and is read only; otherwise, NO.

Discussion

This method could return NO either because key is unrecognized or because writing to the property is not supported. Use hasWritablePropertyForKey: instead.

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.

- 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.

- typeForKey:

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