I have a NSDocument
that I am calling:
[self.windowForSheet setTitleWithRepresentedFilename: @"hello"];
On, but the windows title does not change. It displays MyApp -- Untitled 1
. I have also tried:
[self.windowForSheet setTitleWithRepresentedFilename: @"hello"];
[self.windowForSheet display];
But still it does not get updated.
I have confirmed that self.windowForSheet
is not nil. Am I doing this incorrectly? Note that I am expecting the 'Untitled 1' part of the title to change.