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

question about window and platform features like focus, always-on-top, icon, growl like notificaton #78

Closed
seven1240 opened this issue May 28, 2016 · 5 comments

Comments

@seven1240
Copy link

Hi,

I tested libui on Mac it's awesome.

Would like to ask is it already has or do you have a plan for -

  • mainWin focus. Currently when start the main window does't show on top
  • always on top. maybe for a video/message window to stay on top
  • icon show a nice icon on the dock bar
  • growl like message notification

so it's really a native App.

Also, hint or docs to help make a Mac bundle would be cool.

Thanks.

@andlabs
Copy link
Owner

andlabs commented May 28, 2016

Window focus is an OS X-specific issue; I don't force it on because it would interfere with .app bundles. (If you run from the command line, your window isn't focused by default, but if you run from an .app bundle, it will be.) See #20 for details (and especially the linked Stack Overflow question for technical information).

Not sure what I'll do about always on top.

Dock icons can also be set from the .app bundle. I'm not sure how you would set a Dock icon outside of an .app bundle (but I know it can be done).

Notifications I have already decided would be relegated to a separate library.

@seven1240
Copy link
Author

seven1240 commented May 29, 2016

Thanks for your quick response. I'm able to create a bundle now: http://stackoverflow.com/questions/1596945/building-osx-app-bundle

And it lead me the another question: should libui to i18n or other lib ?

@andlabs
Copy link
Owner

andlabs commented May 29, 2016

I don't understand the question; what do you mean?

@seven1240
Copy link
Author

I'm from China I mean https://en.wikipedia.org/wiki/Internationalization_and_localization

maybe this belongs to other lib like gettext . Not sure.

Thanks for your quick response again. I think I can clost this one.

@andlabs
Copy link
Owner

andlabs commented May 29, 2016

Localization would be done through something like gettext or the lproj files in Xcode, yeah. libui uses UTF-8 for all strings, so it doesn't need extra work to handle localization to LTR languages. Not sure if it will work right on RTL languages, or how to test it, but I did take as many precautions as I can right now to ensure it does.

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