Also renamed as many references to OS X as possible to macOS in documentation.
Cherry-picked from b9702ef41a.
27 lines
718 B
Objective-C
27 lines
718 B
Objective-C
#import "MGLAnnotationImage_Private.h"
|
|
|
|
@interface MGLAnnotationImage ()
|
|
|
|
@property (nonatomic) NSImage *image;
|
|
@property (nonatomic) NSString *reuseIdentifier;
|
|
@property (nonatomic, strong, nullable) NSString *styleIconIdentifier;
|
|
|
|
@end
|
|
|
|
@implementation MGLAnnotationImage
|
|
|
|
+ (instancetype)annotationImageWithImage:(NSImage *)image reuseIdentifier:(NSString *)reuseIdentifier {
|
|
return [[self alloc] initWithImage:image reuseIdentifier:reuseIdentifier];
|
|
}
|
|
|
|
- (instancetype)initWithImage:(NSImage *)image reuseIdentifier:(NSString *)reuseIdentifier {
|
|
if (self = [super init]) {
|
|
_image = image;
|
|
_reuseIdentifier = [reuseIdentifier copy];
|
|
_selectable = YES;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|