PDA

View Full Version : Two .app executables in same cocoa application




ruhi
Jul 30, 2009, 07:39 AM
Hello All,

I m writing a cocoa application.

How can i add two separate applications in same cocoa project. i understood only this part that i need to add one more target. but what next?

Another problem is, when i am done with two targets ..I want tht my first target Application should run as agent that is with no menu bar .

This application has a button , on clicking this button i want to run my another target's code or its main() which should have MainMenu.nib visible as its not running as agent.

What i should do..
- Do i create two NSApplication instance
-Do i create two bundles in same project
-Do i create separate MainMenu.nib for both targets.

Please Help. :confused: :confused:

Thanks,
Richa.