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

minigui: Undefined Timer on OSX - LDC 1.36.0 #410

Open
MrcSnm opened this issue Dec 23, 2023 · 3 comments
Open

minigui: Undefined Timer on OSX - LDC 1.36.0 #410

MrcSnm opened this issue Dec 23, 2023 · 3 comments

Comments

@MrcSnm
Copy link
Contributor

MrcSnm commented Dec 23, 2023

When using LDC 1.36.0, on OSX, I've got:

/Users/Hipreme/.dub/packages/arsd-official/~master/arsd-official/minigui.d(12400,9): Error: undefined identifier `Timer`, did you mean alias `Time`?
@MrcSnm MrcSnm changed the title minigui: Undefined Timer on OSX minigui: Undefined Timer on OSX - LDC 1.36.0 Dec 23, 2023
@adamdruppe
Copy link
Owner

The timer is only available if extern(Objective-C) is.... so upstream problem with ldc.

@adamdruppe
Copy link
Owner

An implementation using the XQuartz backend could be possible, it'd probably need to be built on select() timeouts.

Might also simply be able to version out the Timer use in minigui, i believe that instance is for scrolling text when you drag off the top of the window, which would be annoying to not have but you can get by without it.

@adamdruppe
Copy link
Owner

Actually.... porting that basic thing over to the arsd.core kqueue event loop might also be a solution, I need to do that eventually anyway.

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

No branches or pull requests

2 participants