Thursday, October 3, 2013

XCode app as Agent in MAC

How to make Agent app in Xcode

If you already wrote the NSApplication using Xcode and want to run the same app in background, it can be done simply by adding a entry in -info.plist . Just add a "Application is agent(UIElement)"- Yes.
This would make your app run in background and provide some service, so that other apps can make use of it. Below is the screenshot of -info.plist entry FYR



Hide the Window in Xcode app

To hide the Xcode app main window or any window inside

1. Choose the xib file from the Xcode project.
2. Select the Window that you want to hide, and check the corresponding attributes from attribute window.
3. Uncheck the "Visible at Launch" checkbox.

And you are done, below attached is the screenshot of the window attributes from Xcode ide FYR.