NSBundle(KSTExtensions)

@interface NSBundle (KSTExtensions)

/**
 Returns the current bundle based on the calling context. For example, if you call this property within a framework, it will return the framework bundle. If you call this property in the main app, it will return the main bundle.
 */
@property (class,readonly,nonatomic) NSBundle *KST_currentBundle;

/**
 Returns the bundle identifier. For example, "com.mycompany.app".
 
 @return The bundle identifier
 */
- (NSString *)KST_bundleIdentifier;
/**
 Returns the bundle display name. For example, "App". This value is localized.
 
 @return The bundle display name
 */
- (nullable NSString *)KST_bundleDisplayName;
/**
 Returns the bundle executable. For example, "App". This value is not localized.
 
 @return The bundle executable
 */
- (NSString *)KST_bundleExecutable;
/**
 Returns the bundle short version string. For example, "1.0.0".
 
 @return The bundle short version string
 */
- (NSString *)KST_bundleShortVersionString;
/**
 Returns the bundle version. For example, "1".
 
 @return The bundle version
 */
- (NSString *)KST_bundleVersion;

@end

Undocumented

  • Returns the current bundle based on the calling context. For example, if you call this property within a framework, it will return the framework bundle. If you call this property in the main app, it will return the main bundle.

    Declaration

    Objective-C

    @property (class, nonatomic, readonly) NSBundle *_Nonnull KST_currentBundle;
  • Returns the bundle identifier. For example, “com.mycompany.app”.

    Declaration

    Objective-C

    - (nonnull NSString *)KST_bundleIdentifier;

    Return Value

    The bundle identifier

  • Returns the bundle display name. For example, “App”. This value is localized.

    Declaration

    Objective-C

    - (nullable NSString *)KST_bundleDisplayName;

    Return Value

    The bundle display name

  • Returns the bundle executable. For example, “App”. This value is not localized.

    Declaration

    Objective-C

    - (nonnull NSString *)KST_bundleExecutable;

    Return Value

    The bundle executable

  • Returns the bundle short version string. For example, “1.0.0”.

    Declaration

    Objective-C

    - (nonnull NSString *)KST_bundleShortVersionString;

    Return Value

    The bundle short version string

  • Returns the bundle version. For example, “1”.

    Declaration

    Objective-C

    - (nonnull NSString *)KST_bundleVersion;

    Return Value

    The bundle version