dock menu says "Application not responding" when my app is launch ed at Startup
dock menu says "Application not responding" when my app is launch ed at Startup
- Subject: dock menu says "Application not responding" when my app is launch ed at Startup
- From: Corey Nelson <email@hidden>
- Date: Tue, 7 May 2002 11:04:50 -0600
My Cocoa app is launched by a script in the /System/Library/StartupItems
folder. After booting up and logging in, the dock comes up with my dock icon
on it and my app is running fine except the dock menu says "Application not
responding".
If I start the app normally the dock menu works fine. I tried to reproduce
the problem as best I could outside of Startup so I opened a terminal,
logged in as the root user and executed the script in the Startup folder.
But the dock menu worked fine.
I originally was using InterfaceBuilder to set the Dock Menu. I tried
overriding the applicationDockMenu method instead but that didn't work
either. The method would never be called when I Ctrl-clicked the Dock icon.
That seems to be an OS X bug to me. But it would get called if I started the
app manually or ran the script from a terminal.
The problem seems to be that during startup there isn't a Dock yet though
I'm not sure exactly why that should be a problem. Obviously I can't do
anything about that but if anyone has any suggestions for
working around this somehow or at least figuring out more about the problem
I'd appreciate it. Is there a different way to automatically launch an app
at start up or when a user logs in? Is there a way to debug apps during
Startup?
Thanks for reading.
Corey Nelson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.