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?

Accepted Reply

Option 1 is best practice.

Share and Enjoy

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

Replies

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.)