[英]How can i get title of window in cocoa application?
I'm just getting started with Objective-C and I'm writing a simple application. 我刚刚开始使用Objective-C,并且正在编写一个简单的应用程序。 I made two outlets : + wnd - main window + display - the text box 我做了两个出口:+ wnd-主窗口+显示-文本框
I want to put window title into the text box. 我想将窗口标题放入文本框中。 But, i can not get the window title. 但是,我无法获得窗口标题。 Does anyone can show me how to get it to work? 谁能告诉我如何使它工作? Thank a lot. 非常感谢。
使用NSWindow的title属性。
display.stringValue = wnd.title;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.