• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSWorkspace (un)mount notification in an XPC service
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWorkspace (un)mount notification in an XPC service


  • Subject: NSWorkspace (un)mount notification in an XPC service
  • From: Dragan Milić <email@hidden>
  • Date: Tue, 17 Mar 2015 16:09:59 +0100

Hi all,

Documentation states many of NSWorkspace methods cannot be used in a sandboxed application. I wonder if that applies to registering and receiving NSWorkspaceDidMountNotification and NSWorkspaceDidUnmountNotification notifications.

I have a situation in which a sandboxed application (with no other entitlements) contains a Finder Sync extension. The extension is also sandboxed (with no other entitlements) and it contains an XPC service. The XPC service is sandboxed, with one additional entitlement:

com.apple.security.temporary-exception.files.absolute-path.read-only = “/“

If I register to receive NSWorkspaceDidMountNotification and NSWorkspaceDidUnmountNotification in either the application or the extension, it works, notification are received correctly. However, if I register exactly the same in the same way in the the XPC service, there are no notifications received. I also don’t get any error nor logging message when registering for those notifications in the XPC service.

Is this related to XPC service limitations or sandboxing limitations (I suppose the former, since notifications are received in the application and extension, which are also sandboxed)?

-- Dragan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: NSPathControl (popup) - programatically show Choose dialog
  • Next by Date: Re: All buttons lost focus ring on Yosemite
  • Previous by thread: Re: Finding the use of a private API
  • Next by thread: Official or correct explanation of numbers on the 1st column for every method/function call in process sample?
  • Index(es):
    • Date
    • Thread