How to change the document's window title ?

I want to change the title of my document's window to dynamically reflect settings…

See
Apple documentation regarding - (NSString *)windowTitleForDocumentDisplayName:(NSString *)displayName.