Declared in NSMutableArray+QueueAdditions.h
NSMutableArray+QueueAdditions.m

Overview

This category is based on the Stackoverflow answer given here. I tweaked a few things, but cannot take credit for all of it.

Tasks

Usage Methods

Instance Methods

dequeue

Removes and returns the first item in the queue.

- (id)dequeue

Return Value

The first object in the queue.

Discussion

Removes and returns the first item in the queue.

Declared In

NSMutableArray+QueueAdditions.h

enqueue:

Adds a new item to the end of the queue

- (void)enqueue:(id)obj

Parameters

obj

The new item/object to add to the end of the queue.

Discussion

Adds a new item to the end of the queue

Declared In

NSMutableArray+QueueAdditions.h