Skip to content

alblue/Bugger

minimal
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

This exhibits a bug for applications created by a command-line tool.

When compiling against older SDKs this example works as expected. When compiling against 10.15 the focus of the application doesn't permit clicking on the menu item or the window until focus is switched away to another application and then back again.

This has been reported as a number of bugs in different places:

If there is a simple fix that can be applied to this Objective-C codebase then equivalent fixes could be upstreamed.

Reproducing the bug

$ git clone https://github.com/alblue/Bugger.git
$ cd Bugger
$ xcodebuild
$ ./build/Release/MinimalBug

Attempt to click on the Apple logo on the top left; you can't. Switch to another app with Cmd+Tab or equivalent. Switch back to the Bugger app and then you can click on the menu.

Make

There is a simple makefile to allow differnet modes of execution to be tested.

  • make clean - cleans the repo
  • make build - builds the MinimalBug executable
  • make run - runs the application from terminal: ./build/Release/MinimalBug
  • make app - runs the application via launch services: open MininalBug.app

About

Demonstration of Objective-C/NSApplication focus bug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published