Re: NSWindowController
Re: NSWindowController
- Subject: Re: NSWindowController
- From: James Spencer <email@hidden>
- Date: Sat, 13 Dec 2003 16:04:44 -0600
On Dec 13, 2003, at 3:27 PM, Jason Reece wrote:
Hi all,
Can I please have some help. I'm trying to set the title of a window
programmatically. The window is a subclass of NSWindowController, and
is built using IB. I've tried using the methods in the documents to no
avail. I.e
- (NSString *)windowTitleForDocumentDisplayName:(NSString
*)displayName;
All I want to do is to set the windows title to "fred" or "banana" or
something like that. Surely it cant be that hard, can it?
Presumably, your window is an NSWindow and it's your window controller
that is a subclass of NSWindowController; if so then try something like
the following:
[[self window] setTitle: @"fred"];
Spence
James P. Spencer
Rochester, MN
email@hidden
"Badges?? We don't need no stinkin badges!"
_______________________________________________
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.