-
Notifications
You must be signed in to change notification settings - Fork 1
/
NSBundle+Convenience.h
38 lines (26 loc) · 1.15 KB
/
NSBundle+Convenience.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// NSBundle+Convenience.h
// Sleep Diary
//
// Created by Alexander Ivanov on 15.03.16.
// Copyright © 2016 Alexander Ivanov. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NSArray+Convenience.h"
#define CFBundleDisplayName @"CFBundleDisplayName"
#define CFBundleShortVersionString @"CFBundleShortVersionString"
#define CFBundleVersion (NSString *)kCFBundleVersionKey
@interface NSBundle (Convenience)
- (NSURL *)URLForResource:(NSString *)name;
+ (NSURL *)URLForResource:(NSString *)name;
- (NSString *)pathForResource:(NSString *)name;
+ (NSString *)pathForResource:(NSString *)name;
@property (strong, nonatomic, readonly, class) NSString *mainLocalization;
- (BOOL)isPreferredLocalization:(NSString *)localization;
+ (BOOL)isPreferredLocalization:(NSString *)localization;
@property (strong, nonatomic, readonly, class) NSString *bundleIdentifier;
@property (strong, nonatomic, readonly, class) NSString *bundleDisplayName;
@property (strong, nonatomic, readonly, class) NSString *bundleShortVersionString;
@property (strong, nonatomic, readonly, class) NSString *bundleVersion;
+ (NSString *)bundleDisplayNameAndShortVersion;
@end