Inherits from NSObject
Conforms to NSCopying
NSMutableCopying
Declared in BCKBarString.h

Overview

Class representing a string of bars of type BCKBarType. Receivers of this type are not mutable as opposed to BCKMutableBarString.

Class Methods

string

Creates an empty Bar String.

+ (instancetype)string

Declared In

BCKBarString.h

stringWithBar:

Creates a Bar String with a single bar.

+ (instancetype)stringWithBar:(BCKBarType)bar

Parameters

bar

The BCKBarType to initialize the Bar String with.

Declared In

BCKBarString.h

Instance Methods

barAtIndex:

Determines the bar at a given index.

- (BCKBarType)barAtIndex:(NSUInteger)index

Parameters

index

The index.

Return Value

The BCKBarType for the bar at the index.

Declared In

BCKBarString.h

beginsWithBar:

Determines whether the first bar is of a particular bar type

- (BOOL)beginsWithBar:(BCKBarType)bar

Parameters

bar

The BCKBarType to look for.

Return Value

YES if the receiver begins with this bar type.

Declared In

BCKBarString.h

endsWithBar:

Determines whether the last bar is of a particular bar type.

- (BOOL)endsWithBar:(BCKBarType)bar

Parameters

bar

The BCKBarType to look for.

Return Value

YES if the receiver ends with this bar type.

Declared In

BCKBarString.h

enumerateBarsUsingBlock:

Enumerate all bars in the Bar String.

- (void)enumerateBarsUsingBlock:(void ( ^ ) ( BCKBarType bar , NSUInteger idx , BOOL *stop ))block

Parameters

block

The block to execute for each bar.

Declared In

BCKBarString.h

isEqualToString:

Compares two Bar Strings.

- (BOOL)isEqualToString:(BCKBarString *)otherString

Parameters

otherString

The other Bar String to compare with.

Return Value

YES if the Bar Strings are of equal value.

Declared In

BCKBarString.h

length

Returns the number of bars in the Bar String.

- (NSUInteger)length

Return Value

the length of the receiver.

Declared In

BCKBarString.h