Merge pull request #100 from iamleeg/frontmost_app_stub

Add stub for -[NSWorkspace frontmostApplication]
This commit is contained in:
Fred Kiefer 2021-03-17 23:25:01 +01:00 committed by GitHub
commit b8b4d7c2f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -106,8 +106,10 @@ enum {
@interface NSWorkspace (NSWorkspaceRunningApplications)
#if GS_HAS_DECLARED_PROPERTIES
@property (readonly, copy) NSArray *runningApplications;
@property (readonly, retain) NSRunningApplication *frontmostApplication;
#else
- (NSArray *)runningApplications;
- (NSRunningApplication *)frontmostApplication;
#endif
@end

View file

@ -155,4 +155,9 @@
{
return nil;
}
- (NSRunningApplication *)frontmostApplication
{
return nil;
}
@end