FMCallbackState Class Reference

Inherits from NSObject
Declared in FM.h

Overview

A wrapper for a callback and state object.

– callback

Gets the callback.

- (FMCallback *)callback

Discussion

Gets the callback.

Declared In

FM.h

+ callbackStateWithCallback:state:

Initializes a new instance of the class.

+ (FMCallbackState *)callbackStateWithCallback:(FMCallback *)callback state:(NSObject *)state

Parameters

name="callback">The

callback.

name="state">The

state.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

+ callbackStateWithCallbackBlock:state:

Initializes a new instance of the class.

+ (FMCallbackState *)callbackStateWithCallbackBlock:(void ( ^ ) ( NSObject *))callbackBlock state:(NSObject *)state

Parameters

name="callback">The

callback.

name="state">The

state.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– execute

Executes the callback, passing in the state as a parameter.

- (void)execute

Discussion

Executes the callback, passing in the state as a parameter.

Declared In

FM.h

– initWithCallback:state:

Initializes a new instance of the class.

- (id)initWithCallback:(FMCallback *)callback state:(NSObject *)state

Parameters

name="callback">The

callback.

name="state">The

state.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– initWithCallbackBlock:state:

Initializes a new instance of the class.

- (id)initWithCallbackBlock:(void ( ^ ) ( NSObject *))callbackBlock state:(NSObject *)state

Parameters

name="callback">The

callback.

name="state">The

state.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– setCallback:

Sets the callback.

- (void)setCallback:(FMCallback *)value

Discussion

Sets the callback.

Declared In

FM.h

– setCallbackBlock:

Sets the callback.

- (void)setCallbackBlock:(void ( ^ ) ( NSObject *))valueBlock

Discussion

Sets the callback.

Declared In

FM.h

– setState:

Sets the state.

- (void)setState:(NSObject *)value

Discussion

Sets the state.

Declared In

FM.h

– state

Gets the state.

- (NSObject *)state

Discussion

Gets the state.

Declared In

FM.h