【发布时间】:2019-12-24 13:48:21
【问题描述】:
我是 Obj-c/Cocoa 的新手,想知道如何获取一个 NSWindow 的 ID/编号?
以下 NSWindow 的成员变量可以在 Apple 的网站上找到。
var windowNumber: Int
The window number of the window’s window device.
但是如何获得呢?我可以用吗
NSWindow aWindow;
[aWindow getWindowNumber];
非常感谢!
【问题讨论】:
标签: objective-c variables cocoa member nswindow