【发布时间】:2017-05-10 15:40:18
【问题描述】:
我有一个NSDocument,我正在打电话:
[self.windowForSheet setTitleWithRepresentedFilename: @"hello"];
打开,但窗口标题不变。它显示MyApp -- Untitled 1。我也试过:
[self.windowForSheet setTitleWithRepresentedFilename: @"hello"];
[self.windowForSheet display];
但它仍然没有得到更新。
我已经确认self.windowForSheet 不为零。我做错了吗?请注意,我预计标题的“未命名 1”部分会发生变化。
【问题讨论】:
标签: objective-c cocoa nswindow nsdocument