I have a Document based app, which successfully uses setDisplayName: . But when the app restarts, it does:
- (void)restoreStateWithCoder:(NSCoder *)coder { [ super restoreStateWithCoder: coder ]; NSString *s = [ coder decodeObjectForKey: @"DisplayName" ]; [ self setDisplayName: s ]; } Now this display name is never seen. The window just shows "Untitled". It seems that setDisplayName: only works when the document does not yet have a window. But restoreStateWithCoder: is called after windowControllerDidLoadNib:. What is do be done? Kind regards, Gerriet. 10.7.4 _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com