Declared in NSString-additions.h

Overview

Convenience NSString functions.

Tasks

Class Methods

stringWithKeyCode:

Return the string representation of a key code.

+ (NSString *)stringWithKeyCode:(NSInteger)keyCode

Parameters

keyCode

The key code to make into a string.

Return Value

The string representation of the key code.

Declared In

NSString-additions.h

stringWithKeySequence:

Return the string representation of a key sequence.

+ (NSString *)stringWithKeySequence:(NSArray *)keySequence

Parameters

keySequence

An array of NSNumbers representing key codes.

Return Value

The string representation of the key codes.

Declared In

NSString-additions.h

Instance Methods

isUppercase

YES if the string is in uppercase.

- (BOOL)isUppercase

Return Value

YES if the string is in uppercase.

Declared In

NSString-additions.h

keyCodes

Convert a string to an array of key codes.

- (NSArray *)keyCodes

Return Value

An array of NSNumbers representing key codes.

Declared In

NSString-additions.h

numberOfLines

Count lines.

- (NSInteger)numberOfLines

Return Value

The number of lines in the string.

Declared In

NSString-additions.h

occurrencesOfCharacter:

Count occurrences of a character.

- (NSUInteger)occurrencesOfCharacter:(unichar)ch

Parameters

ch

The character to search for.

Return Value

The number of occurrences of the character.

Declared In

NSString-additions.h