Macos 为系统服务添加类别

Macos 为系统服务添加类别,macos,cocoa,categories,Macos,Cocoa,Categories,我制作了一个cocoa应用程序,当鼠标右键单击时,该应用程序在“服务菜单”中提供服务,但在系统首选项中,该应用程序在可用服务的“常规”类别中显示应用程序,我希望我的应用程序在服务的“开发”类别中显示 我的应用程序更改文件的权限,使其成为可执行或不可执行文件 我的应用程序是“实用工具”还是“开发工具” 这是我的“.plist”文件 CfBundledDevelopmentRegion EN Cbundlexecutable ${EXECUTABLE_NAME} 循环流化床锅炉 CbundleId

我制作了一个cocoa应用程序,当鼠标右键单击时,该应用程序在“服务菜单”中提供服务,但在系统首选项中,该应用程序在可用服务的“常规”类别中显示应用程序,我希望我的应用程序在服务的“开发”类别中显示

我的应用程序更改文件的权限,使其成为可执行或不可执行文件

我的应用程序是“实用工具”还是“开发工具”

这是我的“.plist”文件


CfBundledDevelopmentRegion
EN
Cbundlexecutable
${EXECUTABLE_NAME}
循环流化床锅炉
CbundleIdentifier
kyle.${产品名称:rfc1034identifier}
CbundleInfo字典版本
6
CFBundleName
${PRODUCT_NAME}
CbundlePackageType
应用
CbundleShortVersionString
1
CFBundleSignature
????
循环流化床锅炉
1.
LSApplicationCategoryType
public.app-category.utilities
最小系统版本
${MACOSX_部署_目标}
非人类可读版权
版权所有©2013 Kyle kersey。版权所有。
NSMainNibFile
主菜单
非主类
不适用
NSS服务
LSApplicationCategoryType
public.app-category.utilities
NSMenuItem
违约
切换可执行文件
NSMessage
手持服务
NSPortName
切换可执行文件
NSSendFileType
NSSENDTYPE
NSFileNamesPardType

您是否在征求关于它应该属于哪一类的意见?如果是这样,我不确定是什么让这样的应用成为开发工具;听起来像是一个实用工具。@farski首先我问如何设置应用程序类别,然后我问它的类别应该是什么。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleIconFile</key>
    <string></string>
    <key>CFBundleIdentifier</key>
    <string>kyle.${PRODUCT_NAME:rfc1034identifier}</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>LSApplicationCategoryType</key>
    <string>public.app-category.utilities</string>
    <key>LSMinimumSystemVersion</key>
    <string>${MACOSX_DEPLOYMENT_TARGET}</string>
    <key>NSHumanReadableCopyright</key>
    <string>Copyright © 2013 Kyle kersey. All rights reserved.</string>
    <key>NSMainNibFile</key>
    <string>MainMenu</string>
    <key>NSPrincipalClass</key>
    <string>NSApplication</string>
    <key>NSServices</key>
    <array>
        <dict>
            <key>LSApplicationCategoryType</key>
            <string>public.app-category.utilities</string>
            <key>NSMenuItem</key>
            <dict>
                <key>default</key>
                <string>Toggle Executable</string>
            </dict>
            <key>NSMessage</key>
            <string>handleServices</string>
            <key>NSPortName</key>
            <string>Toggle Executable</string>
            <key>NSSendFileTypes</key>
            <array/>
            <key>NSSendTypes</key>
            <array>
                <string>NSFilenamesPboardType</string>
            </array>
        </dict>
    </array>
</dict>
</plist>