NSNotification.Name.frameDidChangeNotification 未找到
NSNotification.Name.frameDidChangeNotification not found
frameDidChangeNotification(我假设是 boundsDidChangeNotification)的当前路径是什么?
NSView.postsFrameChangedNotifications和NSView.postBoundsChangeNotifications属性可用,但编译器找不到NSNotification.Name.frameDidChangeNotification 和 NSNotification.Name.boundsDidChangeNotification(也试过 Notification.Name.xxx - 结果相同),即使导入了 AppKit。
frameDidChangeNotification
是 NSView
的 class 属性:NSView.frameDidChangeNotification
.
frameDidChangeNotification(我假设是 boundsDidChangeNotification)的当前路径是什么?
NSView.postsFrameChangedNotifications和NSView.postBoundsChangeNotifications属性可用,但编译器找不到NSNotification.Name.frameDidChangeNotification 和 NSNotification.Name.boundsDidChangeNotification(也试过 Notification.Name.xxx - 结果相同),即使导入了 AppKit。
frameDidChangeNotification
是 NSView
的 class 属性:NSView.frameDidChangeNotification
.