• 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: Agent library without UI elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Agent library without UI elements


  • Subject: Re: Agent library without UI elements
  • From: "Teemu Keinonen" <email@hidden>
  • Date: Sun, 2 Dec 2007 21:15:18 +0200

I read a bit about NSRunLoop, but what's very unclear to me is how to
establish connection to window server? I need that for some callbacks.
Is

I take that if i give input source to a thread with a run loop it stays
alive
on the background.

Thanks,
T. Keinonen

On Dec 2, 2007 8:56 PM, infinite labs <email@hidden> wrote:

> On 12/2/07, Teemu Keinonen <email@hidden> wrote:
> > Hi i want to write an agent program that has a connection to Window
> Server
> > and has a run loop.
> > I have tried starting [NSapp run] in a separate thread with little
> success.
> > Agent needs to be deployed as a library,
> > started with method like Run() from an external program (perhaps
> python).
> > It also needs to be free from any UI elements.
> >
> > How would i start such a process in the background? Is it at all
> possible?
>
> [NSApplication run] causes a connection to the window server and shows
> up an icon in the Dock and all of that. If you don't want that, you
> must forgo using the AppKit and use Foundation only. You probably want
> to use NSRunLoop directly instead. See the docs for that.
>
>  - ∞
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Agent library without UI elements (From: "Teemu Keinonen" <email@hidden>)

  • Prev by Date: Re: Scale IKImageBrowserView titles
  • Next by Date: Re: Single column NSListView bug?
  • Previous by thread: Agent library without UI elements
  • Next by thread: Re: Agent library without UI elements
  • Index(es):
    • Date
    • Thread