Skip to content

Commit 0115344

Browse files
committed
Fix deprecated method
1 parent 3102fa5 commit 0115344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QSPasteboardMonitor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ - (void)checkPasteboard:(NSTimer *)timer{
2929
return;
3030
}
3131
lastChangeCount = changeCount;
32-
[[NSNotificationCenter defaultCenter] postNotificationName:QSPasteboardDidChangeNotification object:@{@"Pasteboard" : [NSPasteboard generalPasteboard], @"ActiveApp" : [[[NSWorkspace sharedWorkspace] activeApplication] objectForKey:@"NSApplicationBundleIdentifier"]}];
32+
[[NSNotificationCenter defaultCenter] postNotificationName:QSPasteboardDidChangeNotification object:@{@"Pasteboard" : [NSPasteboard generalPasteboard], @"ActiveApp" : [[NSWorkspace sharedWorkspace] frontmostApplication].bundleIdentifier}];
3333
}
3434

3535

0 commit comments

Comments
 (0)