I’m on MacOS Mountain Lion: is there anything like a template to write a service for ML? I use Xcode 4.4.1
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The service, in generic terms is a unix daemon, that is, a binary file, executed in background.
You can use Xcode’s “command line” utility template to make such a daemon; you still need some means of staring it. In most of the cases, you’ll stick to launchd. Check the man page on launchd.plist(5) for more info.
Ok, on the “other” services thing. That are part of NSService, see the docs on Info.plist. You will need to make a “generic” Cocoa application, and then expose its services.
There is also a generic document on services here.