Files
MapLibreParticleLab/platform/macos/src/MGLAnnotationImage.m
Minh Nguyễn b9702ef41a [macos] Renamed OS X SDK to macOS SDK
Also renamed as many references to OS X as possible to macOS in documentation.
2016-06-14 10:02:06 +02:00

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