From 62201b8abcb6fb3313d40117d5ef13f631efe37a Mon Sep 17 00:00:00 2001 From: Josh Kaplan Date: Thu, 28 Apr 2022 19:07:53 +1200 Subject: [PATCH] Further documentation improvements --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c68c417..1def794 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,9 @@ There are multiple types of servers which can be retrieved: [`SMJobBless`](https://developer.apple.com/documentation/servicemanagement/1431078-smjobbless) - To see a sample app for this use case, check out [SwiftAuthorizationSample](https://github.com/trilemma-dev/SwiftAuthorizationSample) + - `XPCServer.forThisLoginItem()` + - For a login item installed with + [`SMLoginItemSetEnabled`](https://developer.apple.com/documentation/servicemanagement/1501557-smloginitemsetenabled) - `XPCServer.forThisMachService(named:clientRequirements:)` - For [Launch Daemons and Agents](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html) @@ -89,7 +92,8 @@ There are multiple types of clients which can be retrieved: - This corresponds to servers created with `XPCServer.forThisXPCService()` - `XPCClient.forMachService(named:)` - For communicating with an XPC Mach service - - This corresponds to servers created with `XPCServer.forThisBlessedHelperTool()` or + - This corresponds to servers created with `XPCServer.forThisBlessedHelperTool()`, + `XPCServer.forThisLoginItem()`, and `XPCServer.forThisMachService(named:clientRequirements:)` - `XPCClient.forEndpoint(_:)` - This is the only way to communicate with an anonymous server