Instance Method

beginActivityWithOptions:reason:

Begin an activity using the given options and reason.

Declaration

- (id<NSObject>)beginActivityWithOptions:(NSActivityOptions)options reason:(NSString *)reason;

Parameters

options

Options for the activity. See NSActivityOptions for possible values.

reason

A string used in debugging to indicate the reason the activity began.

Return Value

An object token representing the activity.

Discussion

Indicate completion of the activity by calling endActivity: passing the returned object as the argument.

See Also

Managing Activities

- endActivity:

Ends the given activity.

- performActivityWithOptions:reason:usingBlock:

Synchronously perform an activity defined by a given block using the given options.

- performExpiringActivityWithReason:usingBlock:

Performs the specified block asynchronously and notifies you if the process is about to be suspended.