Spawning an app in the dock

For Apple specific issues

Spawning an app in the dock

Postby the8bitdeity » Thu Jul 21, 2005 2:40 am

So I'm stepping through the demo, and MessageManager::doPlatformSpecificInitialisation() seems to spawn an application in the dock. What would prevent this from being successful? I have one class derived from juce_application that isn't successfully spawning a dock app.

Thoughts?
the8bitdeity
JUCE Geek
 
Posts: 23
Joined: Sat May 14, 2005 8:17 pm

Postby jules » Thu Jul 21, 2005 8:24 am

I didn't think an app actually needs to call anything to have an icon appear in the dock, does it? Maybe something in your build settings is flagging it as a non-gui app?
User avatar
jules
Fearless Leader
 
Posts: 17192
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Postby the8bitdeity » Fri Jul 22, 2005 12:59 am

weird, I can't seem to find any settings within the Target or Project that would be causing it. I'm stepping through the code and it goes

1) instance = new MessageManager(); (juce_MessageManager.cpp:86)
2) doPlatformSpecificInitialisation(); (87).

Immediately when I step into #2 your demo code spawns it's self on the app, but for some reason my app doesn't. Maybe I'm doing something out of order.
the8bitdeity
JUCE Geek
 
Posts: 23
Joined: Sat May 14, 2005 8:17 pm

Postby jules » Fri Jul 22, 2005 9:27 am

Odd. Check that SystemStats::initialiseStats() is getting called too - that's where it sets up a few things like the menu bar, etc., which might possibly affect it.

Otherwise, I don't know. I wouldn't have thought there was anything in the MessageManager setup that would make a difference, except that it creates some callbacks for event handling, and that would be the same in all apps.

I'll have a think about this one..
User avatar
jules
Fearless Leader
 
Posts: 17192
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK


Return to MacOSX and iOS

Who is online

Users browsing this forum: Google [Bot] and 0 guests