View count of open SecurityScoped Resources?

Hello, I'm trying to determine if my application is not releasing all security scoped resources and I'm curious if there's a way to view the count of all currently accessed URLs.

I am balancing all startAccessingSecurityScopedResource calls that return true with a stopAccessingSecurityScopedResource, but sometimes my application is unresponsive when my mac wakes from sleep.

  • Console logs indicate some Sandboxing issues.
  • Unresponsiveness is resolved by a force-quit and restart of the application.

I'd like to try and observe what's going on with the number of Security Scoped resources to get to the bottom of this. Is it possible?

I'm curious if there's a way to view the count of all currently accessed URLs.

There is not.

Personally I think that’d be super useful, and I encourage you to file an enhancement request for such a mechanism.

Please post your bug number, just for the record.

Share and Enjoy

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

@DTS Engineer Please also file a feedback. I don't get paid to do so, and my batting average for "suggestion" feedbacks is dismal.

13812072

View count of open SecurityScoped Resources?
 
 
Q