PDA

View Full Version : can I put custom text instead of menu at top of screen?




lazlo
Sep 7, 2008, 03:21 PM
I'm new to the Mac world so I hope this question is appropriate. I'm writing a Python/Java app in which the main menu appears inside the application window instead of at the top of the screen. Can anyone tell me how to put custom text at the top of the screen where Mac apps usually put the menu?
Thanks in advance.



lee1210
Sep 7, 2008, 04:05 PM
You're going to need at least one menu, with the name of your application. You could set that to be something arbitrarily long, but it will still be a menu. Why are you breaking convention and changing how the menu is setup, though? This will break the way users normally interact with mac apps, which will lead to an inconsistent(and unpleasant) experience for them.

-Lee

lazlo
Sep 7, 2008, 04:53 PM
Lee,
Thanks for your advice regarding the LAF of Mac apps. I guess I'm still thinking in terms of the Windoze world. I'll take your advice.
laz

lee1210
Sep 7, 2008, 05:05 PM
Probably for the best... these might help:
http://developer.apple.com/samplecode/OSXAdapter/index.html
http://developer.apple.com/documentation/Java/Conceptual/JavaPropVMInfoRef/Articles/JavaSystemProperties.html

I can't speak to how difficult this will be, as I have not tried it myself.

You can also check out the Azureus/Vuze source:
http://azureus.sourceforge.net/download.php

Click "jar, jar torrent, source" to get to the source download link.

It's main window doesn't "look" as native as some things, but it does integrate with the menu bar, etc.

-Lee