Conforms to NSObject
Declared in OGWStateAspect.h

Overview

Protocol for delegates which want to be informed about state changes.

Instance Methods

aspect:didChangeState:previousState:reason:

Sent to delegate to inform that a state change occured.

- (void)aspect:(OGWStateAspect *)aspect didChangeState:(GWState)state previousState:(GWState)previousState reason:(GWReason)reason

Parameters

aspect

The sending aspect.

state

The new state that was set.

previousState

The previous state.

reason

A user-definable reason why the state change occured. May or may not be considered as you see fit.

Declared In

OGWStateAspect.h

aspect:shouldChangeState:currentState:reason:

Sent to delegate to request whether changing the state from the current state to another given a user-defined reason should be allowed.

- (BOOL)aspect:(OGWStateAspect *)aspect shouldChangeState:(GWState)newState currentState:(GWState)currentState reason:(GWReason)reason

Parameters

aspect

The sending aspect.

newState

The new state intending to be set.

currentState

The current state.

reason

A user-definable reason why the state change occurs. May or may not be considered as you see fit.

Return Value

Delegate should return NO to prevent the state change, otherwise return YES to allow the state change.

Declared In

OGWStateAspect.h