Defines | |
| #define | ILSwapLocalizedString(key, comment) [ILSwapKitBundle() localizedStringForKey:(key) value:@"" table:nil] |
| Fetches a localized string from the SwapKit bundle. | |
Functions | |
| NSBundle * | ILSwapKitBundle () |
| Returns the SwapKit bundle. | |
| void | ILSwapKitSetBundle (NSBundle *bundle) |
| Sets the SwapKit bundle. | |
| NSBundle* ILSwapKitBundle | ( | ) |
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()).
Definition at line 15 of file ILSwapKitBundle.m.
| void ILSwapKitSetBundle | ( | NSBundle * | bundle | ) |
Sets the SwapKit bundle.
For more information on the bundle, see ILSwapKitBundle(). You must use this function if you place SwapKit's resources in a bundle other than one searched by ILSwapKitBundle() by default.
| bundle | The bundle that will be searched for SwapKit resources. Can be nil; if so, the next invocation of ILSwapKitBundle() will repeat its default search. |
Definition at line 42 of file ILSwapKitBundle.m.
1.6.1