• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: LSBackgroundOnly App launches, then quits if other user at console
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LSBackgroundOnly App launches, then quits if other user at console


  • Subject: Re: LSBackgroundOnly App launches, then quits if other user at console
  • From: Finlay Dobbie <email@hidden>
  • Date: Fri, 10 Jun 2005 11:02:09 +0100

On 6/10/05, Jerry Krinock <email@hidden> wrote:
> kCGErrorRangeCheck : Window Server communications from outside of session
> allowed for root and console user only
>
> But, I say, I am LSBackgroundOnly and have not asked for any windows to be
> "served".  Or have I?  I only called NSApplicationMain().

Lots of other functionality requires a connection to the windowserver.
If you really want to run as a daemon, you should avoid using
high-level frameworks (ApplicationServices, AppKit, Carbon, etc) and
restrict yourself to things like Foundation, CoreFoundation,
CoreServices.

 -- Finlay
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >LSBackgroundOnly App launches, then quits if other user at console (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Core Data and/or bindings: setting dynamic default values for properties?
  • Next by Date: Encoding of CFXML strings
  • Previous by thread: LSBackgroundOnly App launches, then quits if other user at console
  • Next by thread: Core Data and Regular Expressions
  • Index(es):
    • Date
    • Thread