|#define||ILSwapLocalizedString(key, comment) [ILSwapKitBundle() localizedStringForKey:(key) value:@"" table:nil]|
|Fetches a localized string from the SwapKit bundle. |
|NSBundle *||ILSwapKitBundle ()|
|Returns the SwapKit bundle. |
|void||ILSwapKitSetBundle (NSBundle *bundle)|
|Sets the SwapKit bundle. |
Returns the SwapKit bundle.
This bundle is the SwapKit.framework from a binary distribution, or the SwapKit.bundle from a source build, or otherwise a bundle that contains all resources that SwapKit needs to function.
If the bundle is not explictly set using ILSwapKitSetBundle(), it will be searched in the Resources directory of the main bundle (but not in any localized subdirectory), in this order:
If not set explicitly or not found, behavior is undefined (currently, a guard is tripped causing an error message and optionally an exception; but this may change in the future). Note that other parts of SwapKit rely on this function, so you MUST embed the bundle as specified above (or set where to find the resources via ILSwapKitSetBundle()).
|void ILSwapKitSetBundle||(||NSBundle *||bundle||)|
Sets the SwapKit bundle.
|bundle||The bundle that will be searched for SwapKit resources. Can be |