Skip to content

A simple Xcode project demonstrating XPC communication between an application and an XPC service

License

Notifications You must be signed in to change notification settings

jdspoone/SampleXPCService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReadMe

This Xcode projects demonstrates simple XPC communication between an application and an XPC service.

The project includes:

  • A main application with a user interface,
  • An XPC service embedded within the main application

To use this application:

  • Build and Run the XPCApp target
  • Use the Start Timer button to launch a timer on the XPC service which will trigger the client's count variable to be incremented on firing
  • Use the Cancel Timer button to cancel the XPC service's timer
  • Use the Invalidate Connection button to invalidate the main application's XPC connection, to demonstrate the on demand re-creation of the XPC connection

The XPC Service is launched automatically alongside the main application, and terminates when the main application terminates.

Please refer to Apple's Daemons and Services Programming Guide for a more in-depth discussion of this topic.

About

A simple Xcode project demonstrating XPC communication between an application and an XPC service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages