Re: Agent library without UI elements
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