Re: Question about System Services
Re: Question about System Services
- Subject: Re: Question about System Services
- From: Douglas Davidson <email@hidden>
- Date: Mon, 8 Apr 2002 11:00:20 -0700
On Sunday, April 7, 2002, at 08:26 PM, Ondra Cada wrote:
Hello! I'm trying to build a System Service (the stand-alone kind that
lives in /Library/Services/ and has a .service extension instead of
.app)
and while i've been able to find sufficient documentation on how to
put together the info.plist file and the needed methods, i haven't
been able to find docs on how to set up Project Builder to do this.
I've started with a 'Cocoa Application' and changed what needs to be
changed (like the .service extension). My question is, what else
should i do. I don't want the service to launch with it's own menu bar
and dock icon (if that's possible), the only UI i want is the panel
that will pop up telling the user how far along it is in processing
the requested data. Thanks for all the help!
Unless somebody will send a better advice, I am afraid you'll have to
make a "foundation tool" target, and add all the remaining stuff,
including the Info.plist and others, yourself (probably using some copy
and/or script phases).
It looks like a bore and really it is, but *so far as I know*, there
seems to be no other way. Of course, you probably could make a PB
template for that yourself, but it would be just as difficult and more,
due to the fact you would want to keep it generic.
I would actually start with an application and modify that (unless
perhaps you are doing a filter service), because services do depend on
the AppKit. The way to prevent the menu bar and dock icon is to add
LSBackgroundOnly = 1 to your info dictionary, if you will put up no UI,
or LSUIElement = 1, if you will put up some UI.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.