mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 19:29:41 +00:00
Create NSImage on background queue.
This commit is contained in:
1 parent
b4ff1785ab
commit
3282f0ec09
1 file changed
+4
-3
@@ -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