Re: How do I change the Document window title?
Re: How do I change the Document window title?
- Subject: Re: How do I change the Document window title?
- From: "Jason R. Bell" <email@hidden>
- Date: Fri, 22 Mar 2002 00:00:14 -0500
From NSDocument documentation:
- (NSString *)displayName "Returns the name of the receiver as displayed in
the title bar of the document's windows ...."
Also from docs for the method above: "Subclasses of NSWindowController can
override windowTitleForDocumentDisplayName: to modify the display name as it
appears in window titles."
The first time I did this, I was actually using a subclass of NSDocument
(for other reasons) and just overrode the displayName method. However, the
NSWindowController approach is nice because you can look at the default
displayName that would be returned and then modify (or replace) it as
needed.
-Jason
On Thursday, March 21, 2002, at 09:25 PM, Alex Nygren wrote:
>
How does one go about changing the window title in an NSDocument (a
>
document
>
based application)? There seems to be no straight forward way to do
>
it - at
>
least of what I could find. Any ideas?
>
>
Thanks.
>
Alex
_______________________________________________
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.