Re: Secondary doc window connection (window titles)
Re: Secondary doc window connection (window titles)
- Subject: Re: Secondary doc window connection (window titles)
- From: Andrea Perego <email@hidden>
- Date: Wed, 26 Mar 2003 17:40:58 +0100
At 11:40 AM -0800 3/25/03, Justin Lundy <email@hidden> wrote:
>
Message: 7
>
Date: Tue, 25 Mar 2003 10:26:34 -0800
>
Subject: Re: Secondary doc window connection [SOLVED]
>
From: Justin Lundy <email@hidden>
>
To: email@hidden
>
>
Stupid me. I did not realize that NSDocument was already set up with
>
windowController methods for secondary windows. using the classes
>
built-in methods already accounts for this. Luckily I did not have to
>
change much to implement these methods.
>
Unfortunately, the secondary windows now have the document's name in
>
the title, instead of the custom title that I wanted...
>
Dear Justin,
NSWindowController has the method:
- (NSString *)windowTitleForDocumentDisplayName:(NSString *)displayName
which is called before the title of the window it controls is drawn.
You may implement it in your controller class and change the window
title to your liking.
Best Regards
Andrea Perego
Univ. of Florence - Phys. Dept.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.