Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Is it safe to access NSPrinter.printerNames on a background thread?

I'm working on a macOS application that needs to query the list of available printers using NSPrinter.printerNames. For performance reasons, I'd like to perform this operation on a background thread.

However, since NSPrinter is part of AppKit, and AppKit is generally not thread-safe unless explicitly stated, I want to confirm:

  • Is it safe to call NSPrinter.printerNames from a background thread?

I couldn’t find explicit guidance in the documentation regarding the thread-safety of printerNames, so any clarification or best practices would be appreciated.

Thanks in advance!

Note: I tested this api on a background thread in code and it did not give any error.

Is it safe to access NSPrinter.printerNames on a background thread?
 
 
Q