• 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: Question about System Services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about System Services


  • Subject: Re: Question about System Services
  • From: Jason Moore <email@hidden>
  • Date: Mon, 8 Apr 2002 14:04:55 -0500

Thanks everyone for the help! I completely forgot about looking for code examples that Apple provided. :)

Jason

On Monday, April 8, 2002, at 12:59 PM, David Remahl wrote:

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

I ususally start with the SimpleService sample code (from
/Developer/Examples/Cocoa). There are some minor adjustments that need to me
made, adjusting class names and target settings, but it takes just a few
minutes.

/ David
_______________________________________________
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.

References: 
 >Re: Question about System Services (From: David Remahl <email@hidden>)

  • Prev by Date: Re: calling carbon functions from Cocoa
  • Next by Date: manage documentEdited
  • Previous by thread: Re: Question about System Services
  • Next by thread: Making links clickable errors
  • Index(es):
    • Date
    • Thread