FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSBundle.h File Reference

NSBundle extension cateogory collection. More...

#import <Foundation/Foundation.h>

Go to the source code of this file.

Classes

category  NSBundle(Shortcuts)
 NSBundle extensions. More...
 

Functions

FOUNDATION_EXTERN NSString * NSMainBundleResourceDirectory (void)
 Returns directory path for main bundle. More...
 
FOUNDATION_EXTERN NSString * NSMainBundleResourcePathForFile (NSString *filename)
 Returns file path in resource directory for main bundle. More...
 

Detailed Description

NSBundle extension cateogory collection.

Function Documentation

FOUNDATION_EXTERN NSString* NSMainBundleResourceDirectory ( void  )

Returns directory path for main bundle.

Returns
[[NSBundle mainBundle] resourcePath]
FOUNDATION_EXTERN NSString* NSMainBundleResourcePathForFile ( NSString *  filename)

Returns file path in resource directory for main bundle.

Parameters
filenameResource file name.
Returns
NSMainBundleResourceDirectory() result with appended filename.
Warning
This implementation is not suitable for localized resource.