You should not use this function to unregister the services provided by your application. For your application’s services, you should use the
setServicesProvider:
method of NSApplication, passing anil
argument.
So, do what you did in applicationDidFinishLaunching:
, except pass nil
instead of self
. (I don't know whether you'll need to do the NSUpdateDynamicServices
step.)