Danilo wrote:
I had the same problem few days ago, without PureBasic. Bought Monkey and BlitzMax and changed the Monkey IDE source a little bit. It is C++ code and uses QT 4.8.4. Same problem, the menus are all gone, except the first one (and this menu is not correct, exactly same way you said).
This is very interesting because it would seem to suggest it's not PB related. But I don't think it does match with my experience.
I'm not using Mavericks. Please read more below.
Danilo wrote:
Could it be a Mac OS X issue/bug with Mavericks? I guess if you compile on Mountain Lion, it works correctly.
The already compiled Monkey IDE (that comes with the product) works correctly on Mavericks.
Compiling on Mavericks itself and the menus are gone! So my guess is, it has something to do with the Xcode libraries on Mavericks.
Requires more investigation what has changed. What APIs are deprecated, what old APIs got removed, etc.
Maybe it was officially changed and we have to rewrite our menu code?
I'm talking now only about glfw because it's the only one where I rebuilt the library from source. With SDL I just tried with the precompiled binaries and so I would have to verify it better.
Back on glfw.
I'm using Mountain Lion, updated with the latest updates available from Apple.
I've compiled the library with XCode 4.63, and PB has installed the 4.62 version of the command line tools.
The library come with some sample programs. They work has expected when
compiled by myself against the library just created.
Using PB with the same library, the menu is broken as discussed above.
And therefore, the code creating the menu it's the same, compiled from the same set of lbs, running under the same OS, and it does work in a case but not in the other.
So, unless I'm missing something, this does not seem to validate your hypothesis for this specific case, right ?
Nevertheless something funny it's happening in the scenario you described, but maybe it's not the same thing ?
Danilo wrote:
Can you try to compile on Mountain Lion, and then run the executable on Mavericks? I have the feeling this should work.
I can't because I only have a single Mac with ML, but Poshu (read above) tried it on mavericks. Initially he said "works fine" but then has replied to my message where I was revealing the problem and he didn't say "but here works well!"
So I think he saw the problem too, in the end.
poshu can you confirm ?
BTW you can try it on Mavericks too if you like, the zip contains all that's needed
Anyway, what can I say, I'll double check it again based on what you said Danilo, just to be absolutely sure I didn't run something pre-built who-knows-how in some way. I'll change some string in the menus in the library code to be absolute sure and have visual confirmation everyone it is really using what it should be using.
If you have any other idea, comment, suggestion, I would be happy to hear it.