Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running normally-GUI Cocoa apps as background processes



Supposing I have a GUI-based Cocoa app, is there any way I can run it as
a background process (i.e. invisible, like Apache, not just 'behind the
current app')? I've got an app which I'd like to be running in the
background of some macs (doing background processing for image crunching)
and I'd like to be able to ssh in and start them up remotely, without the
user getting a faceful of half-processed image.

No. NSApplicationMain() initialises a connection to the WindowServer. You could always create a foundation tool for your purposes.

What about NSBGOnly?

/ david

(BTW, nice work on the HXD installer, Finlay!)


References: 
 >Re: Running normally-GUI Cocoa apps as background processes (From: Finlay Dobbie <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.