Conforms to NSObject
Declared in MOOStyleTrait.h

Overview

MOOStyleTrait is a protocol defining the basic operations of a style trait.

Tasks

Properties

styleProtocol

The underlying style protocol defining all properties.

@property (nonatomic, strong, readonly) Protocol *styleProtocol

Declared In

MOOStyleTrait.h

Class Methods

trait

Creates and returns a new, autoreleased trait.

+ (id<MOOStyleTrait>)trait

Declared In

MOOStyleTrait.h

Instance Methods

mixInTrait:

Overwrites properties of the current trait with values from another trait as long as those values are set on the other trait.

- (void)mixInTrait:(id<MOOStyleTrait>)otherTrait

Declared In

MOOStyleTrait.h

mixInTraits:

Calls mixInTrait: on every element in an array of traits.

- (void)mixInTraits:(NSArray *)traits

See Also

Declared In

MOOStyleTrait.h

traitMixedWithTrait:

Creates a new trait composed of the current trait and a passed-in trait. Does not overwrite properties on the callee, unlike mixInTrait:.

- (id<MOOStyleTrait>)traitMixedWithTrait:(id<MOOStyleTrait>)otherTrait

See Also

Declared In

MOOStyleTrait.h

traitMixedWithTraits:

Creates a trait composed of the current trait and an array of other traits. Does not overwrite properties on the callee, unlike mixInTraits:.

- (id<MOOStyleTrait>)traitMixedWithTraits:(NSArray *)otherTraits

Declared In

MOOStyleTrait.h