Declared in NSBundle+KoboldKit.h

Overview

NSFileManager category methods for Kobold Kit

Class Methods

pathForBundleFile:

The absolute path to the file or nil if the file could not be found.

+ (NSString *)pathForBundleFile:(NSString *)file

Parameters

file

A filename.

Return Value

The absolute path to the file or nil if the file could not be found.

The path to the file or nil if the file couldn’t be found in the bundle.

Declared In

NSBundle+KoboldKit.h

pathForDocumentsFile:

The absolute path to the file.

+ (NSString *)pathForDocumentsFile:(NSString *)file

Parameters

file

A filename.

Return Value

The absolute path to the file.

The path to the file or nil if the file couldn’t be found in the user’s documents directory.

Declared In

NSBundle+KoboldKit.h

pathForFile:

Searches for the file in the documents directory first, before trying the bundle and returns the absolute path to the file where it was first found.

+ (NSString *)pathForFile:(NSString *)file

Parameters

file

A filename.

Return Value

The absolute path to the file, or nil if the file could not be found in any of the searched directories.

Declared In

NSBundle+KoboldKit.h

pathForFile:inDirectory:

Searches for the file in the given NSSearchPathDirectory and returns the absolute path to the file if it was found.

+ (NSString *)pathForFile:(NSString *)file inDirectory:(NSSearchPathDirectory)directory

Parameters

file

A filename.

directory

The NSSearchPathDirectory constant where to look for the file.

Return Value

The absolute path to the file, or nil if the file could not be found.

The path to the file or nil if the file couldn’t be found in the directory.

Declared In

NSBundle+KoboldKit.h

pathToDocumentsDirectory

The full path to the documents directory.

+ (NSString *)pathToDocumentsDirectory

Return Value

The full path to the documents directory.

Declared In

NSBundle+KoboldKit.h