Instance Method

setAttribute:forKey:

Sets a scene attribute for the specified key.

Declaration

- (void)setAttribute:(id)attribute forKey:(NSString *)key;

Parameters

attribute

An object that specifies the value of the attribute to be written.

key

One of the constants described in Scene Attributes that identifies the attribute to be written.

See Also

Managing Scene Attributes

- attributeForKey:

Returns the scene attribute for the specified key.