//
//  NSBundleHelpers.h
//  GlyphsKit
//
//  Created by Georg Seifert on 16/03/16.
//  Copyright © 2016 Georg Seifert. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString * const GSBundleExecutableKey;				// @"CFBundleExecutable"
extern NSString * const GSBundleIdentifierKey;				// @"CFBundleIdentifier"
extern NSString * const GSBundleDisplayNameKey;				// @"CFBundleDisplayName"
extern NSString * const GSBundleNameKey;					// @"CFBundleName"
extern NSString * const GSBundleVersionKey;					// @"CFBundleVersion"
extern NSString * const GSPrincipalClassKey;				// @"NSPrincipalClass"
extern NSString * const GSBundleShortVersionStringKey;		// @"CFBundleShortVersionString"
extern NSString * const GSBundleIconFileKey; 				// @"CFBundleIconFile"
extern NSString * const GSBundleDocumentTypesKey;			// @"CFBundleDocumentTypes"
extern NSString * const GSBundleTypeRoleKey;				// @"CFBundleTypeRole"
extern NSString * const GSMinGlyphsVersionKey; 				// @"MinGlyphsVersion"
extern NSString * const GSMinGlyphsBundleVersionKey; 		// @"MinGlyphsBundleVersion"
extern NSString * const GSMaxGlyphsVersionKey; 				// @"MaxGlyphsVersion"
extern NSString * const GSMaxGlyphsBundleVersionKey; 		// @"MaxGlyphsBundleVersion"
extern NSString * const GSMinSystemVersionKey; 				// @"MinSystemVersion"
extern NSString * const GSMaxSystemVersionKey; 				// @"MaxSystemVersion"

@interface NSBundle (NibLoading)

+ (NSArray *)loadNibNamed:(NSString *)nibName owner:(id)owner error:(NSError **)error;

- (NSImage *)imageWithCustomSymbolNameHierarchical:(NSString *)imageName size:(CGFloat)fontSize weight:(NSFontWeight)weight scale:(NSImageSymbolScale)scale;

@end

@interface NSImageSymbolConfiguration (convenient)

+ (NSImageSymbolConfiguration *)configurationWithHierarchicalSize:(CGFloat)fontSize weight:(NSFontWeight)weight scale:(NSImageSymbolScale)scale;

@end
