Skip to content

Create a Mac port#78

Draft
alicerunsonfedora wants to merge 7 commits intosigma144:masterfrom
alicerunsonfedora:dev-macport
Draft

Create a Mac port#78
alicerunsonfedora wants to merge 7 commits intosigma144:masterfrom
alicerunsonfedora:dev-macport

Conversation

@alicerunsonfedora
Copy link

@alicerunsonfedora alicerunsonfedora commented Oct 15, 2022

This PR will keep track of the progress for the Mac port of the randomizer app.

  • Create the frontend/user interface portion.
  • Change Windows-specific system call to macOS-appropriate ones.
  • Find global pointer and ensure memory hijacking works correctly.

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
The current UI has been created with Storyboards and follows more
closely to the verbiage used in Mac apps. Preliminary support for
saving/loading from User Defaults exists, though the app doesn't
fully utilize it yet.

The current app structure uses MVVM as well, to separate the UI
from the business logic.

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
@alicerunsonfedora
Copy link
Author

Progress update: We now have a basic UI that is hooked up to a view model that controls the difficulty mode. There's also some support for loading from/saving to User Defaults. The current structure of the app is MVVM.

image

The main UI is finished with support for saving and loading data
from User Defaults. This will likely get changed when the app will
look for an active process of The Witness to randomize.

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
Additionally, for Macs running 11.0 or later, the subtext that will
update the status of randomization appears as the window's subtitle.

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
@alicerunsonfedora
Copy link
Author

Progress update: I've finished hooking up the UI to a basic view model, which handles storing the settings somewhere. Additionally, I've set up the app so that it loads from and saves to User Defaults when opening/closing the app. I've also made some minor tweaks for Macs running Big Sur and later to use the window's subtitle property. I still need to figure out a good solution for Macs running Catalina and earlier.

image

This only appears on Big Sur or later and if the user has selected
their preferred accent color on the system to be Multicolor.

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
Signed-off-by: Marquis Kurt <software@marquiskurt.net>
@tgtiweird
Copy link

looks nice so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants