Re: services
Re: services
- Subject: Re: services
- From: Chilton Webb <email@hidden>
- Date: Sat, 29 Dec 2001 00:03:20 -0600
I'm still learning myself, but I think these answers are right, and if
I'm wrong, hey, I'm sure someone will point it out.
-Chilton
-------------------
On Friday, December 28, 2001, at 08:06 PM, Simson Garfinkel wrote:
1. Is Info.plist supposed to be in property-list format or in XML?
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmin
gTopics/SysServices/index.html
indicates that it is supposed to be in PLIST format.
According to :
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
SysServices/Concepts/properties.html...
PLISTs are stored in an XML format. So I think the answer to question 1
is "yes".
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmin
gTopics/SysServices/Concepts/properties.html#CHDJDFIC
seems to indicates that it should be in XML, and that you should edit
the
XML using the "plist editor" --- that is, the EXPERT mode of Project
Builder.
2. This is really ugly. Are there any plans to have a real services
editor?
No idea, but this would be a simple enough thing to write, as it appears
to be fairly straightforward xml (I could be wrong, I only glanced over
it).
3. How does Workspace determine where the applications are that provide
services? Does it scan all of the applications on the HFS+ disk? What
about
UFS drives?
From
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
SysServices/Concepts/menu.html I quoteth...
"Applications that provide services are installed in the Applications
and Library/Services folders in any of the four file-system domains
System, Network, Local, and User."
4. if I am creating a new service, how do I get Workspace to notice
that the
service is now being published?
I believe this is handled via the installation process, but I'm honestly
not sure.
5. Are services offered to Carbon applications? it doesn't look like
they
are.
They are, but I hear it's a non-trivial implementation, and I've only
heard that it's possible from those who attended one of the Carbon
kitchens, which I am not one of, so I could be wrong.
6. Hey, Apple, the Summarize service is really cool. Try it on a CNN
article.
;-)
I wonder if Summarize is based on the pre-carbon V-Twin content
summarization code, or if it's something from the NeXT side. Frankly, I
was always more impressed with DataHammer's summarization feature (I
think that's what it was called).
7. What is the "userdata" ?
These are keys for a service that you define, ie they can be anything
you want, so that you can offer multiple similar services via the same
method in your code (see NSMessage for more on this) while
differentiating their behavior (via the userdata key). Eh, did that make
sense?
8. Is the "port" simply the name of the application?
Generally speaking, yes. I've never seen one that is not, though the
official docs are somewhat vague about this, with language like, " In
most cases, this is the application name. "
9. Is the message simply the first part of the method name?
Yes, in both Obj-C and Java.
---------------------------
References: | |
| >services (From: "Simson Garfinkel" <email@hidden>) |