Contents

service()

Returns the singleton listener used to listen for incoming connections in an XPC service.

Declaration

class func service() -> NSXPCListener

Discussion

Calling the resume method on the returned object starts the listener and never returns. This method is typically called at the end of your main function.

See Also

Using standard listeners