You actually can have a GUI application in the background, by setting the following key in your Info.plist:

        <key>LSUIElement</key>
        <string>1</string>

Your application then doesn't get a menu bar and doesn't appear in the Dock. Depending on what you want your app to do, this might be what you want. This is referred to as an "Agent Application" -- details at:

http://developer.apple.com/documentation/MacOSX/Conceptual/OSX_Technology_Overview/SoftwareDevelopment/chapter_7_section_6.html

(And on that issue it would be nice if there were a way of getting no menu bar but still having a Dock icon, but that doesn't seem to be possible.)

Cheers,
Brett


On 19/05/2008, at 6:44 PM, Hamish Allan wrote:

On Mon, May 19, 2008 at 8:21 AM, ninad walvekar <[EMAIL PROTECTED] > wrote:

I have an existing GUI application and now i want to run that same
application in the background at startup and then when the user wants to run the application run it as a normal GUI application.The application has been
built in Cocoa.Can anyone help me on this?

Hi Ninad,

You can't do that without re-writing parts of the application --
taking the parts you want to run in the background at startup and
re-implementing them as a daemon. (See
http://developer.apple.com/technotes/tn2005/tn2083.html -- read it in
its entirety!)

Best wishes,
Hamish
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/brett %40process.com.au

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to