首页 > 解决方案 > 未找到 NSNotification.Name.frameDidChangeNotification

问题描述

frameDidChangeNotification (和 boundsDidChangeNotification,我假设)的当前路径是什么?

NSView.postsFrameChangedNotifications和NSView.postBoundsChangeNotifications属性可用,但编译器找不到NSNotification.Name.frameDidChangeNotificationNSNotification.Name.boundsDidChangeNotification(也尝试了 Notification.Name.xxx - 相同的结果),即使导入了 AppKit。

标签: macosnotificationsnsview

解决方案


frameDidChangeNotification是 : 的类NSView属性NSView.frameDidChangeNotification


推荐阅读