[Playlist Storage] Add another compatibility hook
Add a compatibility getter/setter for URL, which was renamed to url, due to Core Storage having a requirement of all attributes starting with a lower case letter. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
333c6c7e8b
commit
789e8e432e
3 changed files with 12 additions and 1 deletions
|
@ -1348,7 +1348,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
||||||
|
|
||||||
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
|
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
|
||||||
|
|
||||||
NSURL *url = [[self selectedObjects][0] URL];
|
NSURL *url = [[self selectedObjects][0] url];
|
||||||
if([url isFileURL]) [ws selectFile:[url path] inFileViewerRootedAtPath:[url path]];
|
if([url isFileURL]) [ws selectFile:[url path] inFileViewerRootedAtPath:[url path]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
@property(nonatomic) NSData *_Nullable albumArtInternal;
|
@property(nonatomic) NSData *_Nullable albumArtInternal;
|
||||||
|
|
||||||
@property(nonatomic) BOOL Unsigned;
|
@property(nonatomic) BOOL Unsigned;
|
||||||
|
@property(nonatomic) NSURL *URL;
|
||||||
|
|
||||||
- (void)setMetadata:(NSDictionary *_Nonnull)metadata;
|
- (void)setMetadata:(NSDictionary *_Nonnull)metadata;
|
||||||
|
|
||||||
|
|
|
@ -471,6 +471,16 @@ NSURL *_Nullable urlForPath(NSString *_Nullable path) {
|
||||||
self.unSigned = Unsigned;
|
self.unSigned = Unsigned;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// More of the same
|
||||||
|
@dynamic URL;
|
||||||
|
- (NSURL *)URL {
|
||||||
|
return self.url;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)setURL:(NSURL *)URL {
|
||||||
|
self.url = URL;
|
||||||
|
}
|
||||||
|
|
||||||
- (void)setMetadata:(NSDictionary *)metadata {
|
- (void)setMetadata:(NSDictionary *)metadata {
|
||||||
if(metadata == nil) {
|
if(metadata == nil) {
|
||||||
self.error = YES;
|
self.error = YES;
|
||||||
|
|
Loading…
Reference in a new issue