macos - 未找到 NSNotification.Name.frameDidChangeNotification
问题描述
frameDidChangeNotification (和 boundsDidChangeNotification,我假设)的当前路径是什么?
NSView.postsFrameChangedNotifications和NSView.postBoundsChangeNotifications属性可用,但编译器找不到NSNotification.Name.frameDidChangeNotification和NSNotification.Name.boundsDidChangeNotification(也尝试了 Notification.Name.xxx - 相同的结果),即使导入了 AppKit。
解决方案
frameDidChangeNotification
是 : 的类NSView
属性NSView.frameDidChangeNotification
。
推荐阅读
- mysql - 在使用连接和大小写编写复杂的 sql 查询时需要帮助
- python - 如何从本地窗口与代码调试远程 python 代码
- javascript - 使用 Axios 向服务器发出 http 请求时出现问题
- flutter - pub 失败:因为 flutter_google_places >=0.2.5 取决于 rxdart ^0.24.0 上 rxdart ^0.23.1,
- ag-grid - 如何让 ag-grid 表将字符串数组分解为同一列中的多行
- google-bigquery - 无法将 _TABLE_SUFFIX 与嵌套列一起使用
- javascript - 将 React 样式转换为 CSS
- python - discord.py embed 将列表打印为字符串,而不是单独的条目
- python - 如何在 python 中使用 Uvicorn 运行服务器时进行加密(从 http 到 https)
- python - 如何在我的 scikit 管道中正确应用标签编码器?