Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 窗口关闭时的通知_Macos_Cocoa_Accessibility - Fatal编程技术网

Macos 窗口关闭时的通知

Macos 窗口关闭时的通知,macos,cocoa,accessibility,Macos,Cocoa,Accessibility,创建窗口时会出现kAXWindowCreatedNotification通知,但在关闭窗口时,我会寻找相同的通知 有指针吗 感谢和问候,我能想到的最接近的方法是NSWindowWillCloseNotification。您尝试过KaxuilementDestroyedNotification吗?这可能是最好的方法。我得测试一下。感谢使用kAX constants assistive任何东西都需要用户选择通用访问,是吗?

创建窗口时会出现kAXWindowCreatedNotification通知,但在关闭窗口时,我会寻找相同的通知

有指针吗


感谢和问候,

我能想到的最接近的方法是NSWindowWillCloseNotification。

您尝试过KaxuilementDestroyedNotification吗?这可能是最好的方法。我得测试一下。感谢使用kAX constants assistive任何东西都需要用户选择通用访问,是吗?