I built a framework and a cocoa application in Mac OS X. The framework is dynamically linked to the application. In a class of the framework, I need to read a resource file within this framework's resources folder. The code below

NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
NSString *characterCodeTable = [resourcePath stringByAppendingPathComponent:@"pymb.txt"];

does not work since "resourcePath" is the path to application's resources folder, not the framework's.

So how can I access the framework's resource folder in the code in this framework itself?

BTW: Is there any best practice to organize miscellaneous files in a framework/application bundle?

Edit
Report