Reputation: 6813
I have followed all the Apple documentation for setting up a service for a right click menu list and for the services list:
Despite all this I cannot see my service in any menu item.
EDIT** Here is the services part of my info.plist:
<key>NSServices</key>
<array>
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>MyApp/Send to MyApp</string>
</dict>
<key>NSMessage</key>
<string>contentService</string>
<key>NSPortName</key>
<string>MyApp</string>
<key>NSSendTypes</key>
<array>
<string>NSStringPboardType</string>
<string>NSFileContentsPboardType</string>
</array>
</dict>
</array>
What am I doing wrong? thanks in advance.
Upvotes: 1
Views: 1941
Reputation: 96333
I have followed all the Apple documentation for setting up a service…
Ah, that's the problem: You stopped there. You also need to add the NSRequiredContext
key to your service to get it to be enabled by default on Snow Leopard and later.
Fortunately, while the Services documentation doesn't mention that NSRequiredContext
is required, the Information Property List Key Reference does explain the value you must provide for it.
Upvotes: 6