Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0ul);
dispatch_async(queue, ^{
while (true)
{
NSImage * i = [[NSImage alloc] initWithContentsOfFile:@"/Users/donblas/Programming/Local/57540/57540/image_with_xmp_metadata.png"];
i.cacheMode = NSImageCacheNever;
[NSThread sleepForTimeInterval:1];
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment