mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Create NSImage on background queue.
This commit is contained in:
@@ -16,9 +16,10 @@
|
||||
|
||||
NSParameterAssert(data != nil);
|
||||
|
||||
NSImage *image = [[NSImage alloc] initWithData:data];
|
||||
|
||||
RSCallBlockWithParameter(imageResultBlock, image);
|
||||
dispatch_async(dispatch_get_global_queue(QOS_CLASS_DEFAULT, 0), ^{
|
||||
NSImage *image = [[NSImage alloc] initWithData:data];
|
||||
RSCallBlockWithParameter(imageResultBlock, image);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user