NSBundle (misc)


Declared In:
NSBundle+misc.h


Category Description

Utility functions for NSBundle


Method Types

- loadAllParsingDictionariesFromFolder:
- pathsToParsingDictionariesFromFolder:
- compareBundleName:
- localizedStringForKey:

Instance Methods

compareBundleName:

- (NSComparisonResult)compareBundleName:(NSBundle *)inBundle

Compare this bundle's localized name with another's. Used to sort bundles by their names.


loadAllParsingDictionariesFromFolder:

- (NSDictionary *)loadAllParsingDictionariesFromFolder:(NSString *)inFolder

Find all the parsing dictionaries in the given sub-folder name (or nil, for no sub-folder) of Resources in the package. The bundle ID indicates the "external" dictionaries to be found in a Library/Application Support/Watson/Dictionaries/bundleID/subfolder


localizedStringForKey:

- (NSString *)localizedStringForKey:(NSString *)inKey

Lookup a key and return its localized value


pathsToParsingDictionariesFromFolder:

- (NSArray *)pathsToParsingDictionariesFromFolder:(NSString *)inFolderName

Return an array of paths that might contain parsing dictionaries, given the subfolder name specified as inFolderName. This will create a path list from all domains within Library/Application Support/Watson/(bundle identifier)/inFolderName, plus the tool's own resource path, for built-in plists.


Version 1.1 Copyright ©2003 by Karelia Software, LLC. All Rights Reserved.