Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement console demo on Mac OS with Cocoa #35

Open
Ybalrid opened this issue Mar 25, 2018 · 7 comments · May be fixed by #92
Open

Implement console demo on Mac OS with Cocoa #35

Ybalrid opened this issue Mar 25, 2018 · 7 comments · May be fixed by #92

Comments

@Ybalrid
Copy link
Member

Ybalrid commented Mar 25, 2018

The console demo doesn't run on Mac OS X. Need to investigate.

@Ybalrid Ybalrid added the bug label Mar 25, 2018
@Ybalrid Ybalrid added this to To do in Repo cleaning Mar 25, 2018
@Ybalrid Ybalrid moved this from To do to In progress in Repo cleaning Mar 25, 2018
@Ybalrid
Copy link
Member Author

Ybalrid commented Mar 25, 2018

Looking at the demo code, the initialization of a window is never actually done, and the Mac OS code is #ifdef-ed out.

@Ybalrid Ybalrid changed the title Demo segfault under OSX Implement console demo on Mac OS with Cocoa Mar 25, 2018
@Ybalrid Ybalrid added enhancement and removed bug labels Mar 25, 2018
@Ybalrid Ybalrid moved this from In progress to To do in Repo cleaning Mar 25, 2018
@Ybalrid Ybalrid moved this from To do to In progress in Repo cleaning Mar 25, 2018
@Ybalrid
Copy link
Member Author

Ybalrid commented Mar 25, 2018

Removing the check for 64bit that undefined the initialization, and replacing the carbon-based code that create a window to the initialization of a Cocoa NSApplication and NSWindow seems to get something working.

The application can't terminate on it's own when you hit Q or ESC, but it's not crashing, and the events are shown int the console.

vmware_2018-03-25_23-49-13

The quit problem seems fixable, the mouse cursor seems to be hidden by default, and the code that prints event on the console only prints a raw integer value when it gets an event. Other than that, everything seems to be working flawlessly.

@Ybalrid
Copy link
Member Author

Ybalrid commented Mar 25, 2018

See commit f8637a8

@Ybalrid
Copy link
Member Author

Ybalrid commented Mar 27, 2018

Have to say that anybody with actual knowledge of Objective-C(++) and Cocoa are welcomed to help ;-)

@Ybalrid Ybalrid moved this from In progress to Done in Repo cleaning Mar 31, 2018
@Ybalrid Ybalrid moved this from Done to In progress in Repo cleaning Mar 31, 2018
@Ybalrid Ybalrid moved this from In progress to On hold. in Repo cleaning Apr 26, 2018
@Ybalrid
Copy link
Member Author

Ybalrid commented Aug 14, 2020

For other reasons, I have recently acquired an actual mac. Gonna be able to dive into this a bit more

@kagurazaka-ayano
Copy link

Any update on this?
When I run the demo the FFConsoleApp results in a seg fault and the ConsoleApp makes my mouse disappear as soon as the console window get selected.
my OS detail:

OS: macOS 14.2 23C5030f arm64
Host: Mac14,5
Kernel: 23.2.0
Uptime: 10 days, 8 hours, 23 mins
Packages: 219 (brew)
Shell: zsh 5.9
Resolution: 1800x1169, 1366x1024
DE: Aqua
WM: Quartz Compositor
WM Theme: Graphite (Dark)
Terminal: iTerm2
Terminal Font: CaskaydiaCoveNFM-Regular 14
CPU: Apple M2 Max
GPU: Apple M2 Max
Memory: 10783MiB / 65536MiB

@Ybalrid
Copy link
Member Author

Ybalrid commented Dec 3, 2023

No work has touched Mac support in years. Help is welcomed on that front!

@zawata zawata linked a pull request Jan 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Repo cleaning
  
On hold.
Development

Successfully merging a pull request may close this issue.

2 participants