Re: Newbie - Setting a window to a title other then document file name
Re: Newbie - Setting a window to a title other then document file name
- Subject: Re: Newbie - Setting a window to a title other then document file name
- From: Keith Renz <email@hidden>
- Date: Wed, 17 Sep 2003 23:59:32 -0400
Hi Tom,
This method is not an accessor method (set/get) but a method you need
to override in your NSWindowController subclass just like NSDocument's
displayName: method. Now I know why this wasn't working for you! :)
Keep in mind that this sets the window title only, not the save sheet's
default file name, which I think is what you want. So, override them
both to get the behavior you want.
Keith
-----
On Wednesday, September 17, 2003, at 05:25 PM, Tom Gray wrote:
Hello,
I have a NSWindowController subclass whose window I would like to set
to a title other then the filename used by the NSDocument subclass. I
have tried:
[self windowTitleForDocumentDisplayName:@"Crewdog Terminal"];
But, the title of the window on screen is still Untitled.
Any Ideas?
Tom
_______________________________________________
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.
_______________________________________________
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.