     
     private func registerForNotifications() {
         NSWorkspace.shared.notificationCenter.addObserver(self, selector: #selector(reloadPock), name: .shouldReloadPock, object: nil)
-        NotificationCenter.default.addObserver(self,
-                                               selector: #selector(willEnterCustomization(_:)),
-                                               name: NSNotification.Name("NSTouchBarWillEnterCustomization"),
-                                               object: nil)
-        NotificationCenter.default.addObserver(self,
-                                               selector: #selector(didExitCustomization(_:)),
-                                               name: NSNotification.Name("NSTouchBarDidExitCustomization"),
-                                               object: nil)
     }
     
     @objc func reloadPock() {

    
    func openCustomization() {
        NSApp.touchBar = self.touchBar
        self.perform(#selector(delayedOpenCustomization), with: nil, afterDelay: 0)
    }
    
    @objc private func delayedOpenCustomization() {

    
    @objc private func didExitCustomization(_ sender: Any?) {
        NSApp.touchBar = nil
        self.removeCustomizationObservers()
        self.present()
    }
    
