From b8206f9f13f144733b5a6afadfb4fe7ed1b9d37a Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 30 Mar 2008 19:13:17 +0000 Subject: [PATCH] Synchronize window titles --- Sources/VLDocument.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/VLDocument.mm b/Sources/VLDocument.mm index 9cafedb..fd677f3 100644 --- a/Sources/VLDocument.mm +++ b/Sources/VLDocument.mm @@ -199,6 +199,16 @@ return song; } +- (void) setSongTitle:(NSString *)newTitle +{ + if (newTitle != songTitle) { + [songTitle release]; + songTitle = [newTitle retain]; + } + [[self windowControllers] makeObjectsPerformSelector: + @selector(synchronizeWindowTitleWithDocumentName)]; +} + - (NSNumber *) songKey { const VLProperties & prop = song->fProperties.front();