XPC best practice question

Is it better to

  1. Create an NSXPCConnection, keep it around, and create proxies using that as needed, or
  2. Create an NSXPCConnection, create a proxy off of it, and then close the connection when done?
Answered by DTS Engineer in 716793022

Option 1 is best practice.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Option 1 is best practice.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Ok, that's what I thought. 😄 (And what I am doing.)

XPC best practice question
 
 
Q