Remove some old IKImageView methods
This commit is contained in:
1 file changed
-29
@@ -7,17 +7,10 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#import "MP42Image.h"
|
#import "MP42Image.h"
|
||||||
#import <Quartz/Quartz.h>
|
|
||||||
#import "MP42Utilities.h"
|
#import "MP42Utilities.h"
|
||||||
|
|
||||||
NSPasteboardType const MP42PasteboardTypeArtwork = @"org.subler.artworkdata";
|
NSPasteboardType const MP42PasteboardTypeArtwork = @"org.subler.artworkdata";
|
||||||
|
|
||||||
@interface MP42Image ()
|
|
||||||
|
|
||||||
@property (atomic, readonly) NSString *uuid;
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
MP42_OBJC_DIRECT_MEMBERS
|
MP42_OBJC_DIRECT_MEMBERS
|
||||||
@implementation MP42Image {
|
@implementation MP42Image {
|
||||||
NSImage *_image;
|
NSImage *_image;
|
||||||
@@ -26,7 +19,6 @@ MP42_OBJC_DIRECT_MEMBERS
|
|||||||
@synthesize url = _url;
|
@synthesize url = _url;
|
||||||
@synthesize data = _data;
|
@synthesize data = _data;
|
||||||
@synthesize type = _type;
|
@synthesize type = _type;
|
||||||
@synthesize uuid = _uuid;
|
|
||||||
|
|
||||||
- (instancetype)initWithURL:(NSURL *)url type:(MP42TagArtworkType)type
|
- (instancetype)initWithURL:(NSURL *)url type:(MP42TagArtworkType)type
|
||||||
{
|
{
|
||||||
@@ -119,27 +111,6 @@ MP42_OBJC_DIRECT_MEMBERS
|
|||||||
return _image;
|
return _image;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)uuid
|
|
||||||
{
|
|
||||||
@synchronized(self) {
|
|
||||||
if (_uuid == nil) {
|
|
||||||
_uuid = [[NSProcessInfo processInfo] globallyUniqueString];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return _uuid;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSString *)imageUID
|
|
||||||
{
|
|
||||||
return self.uuid;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (id)imageRepresentation
|
|
||||||
{
|
|
||||||
return self.image;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ (BOOL)supportsSecureCoding
|
+ (BOOL)supportsSecureCoding
|
||||||
{
|
{
|
||||||
return YES;
|
return YES;
|
||||||
|
|||||||
Reference in new issue
Block a user