Re: NSWindowController
Re: NSWindowController
- Subject: Re: NSWindowController
- From: John Pannell <email@hidden>
- Date: Sat, 13 Dec 2003 14:50:19 -0700
Hi Jason-
If I'm understanding your situation correctly, there is no need to
subclass anything... a regular NSWindow should respond in your desired
fashion to the "setTitle:" message. For example...
[myWindow setTitle:@"Fred"];
Make an outlet from your controller object to your window in IB and you
should be able to set its title to your heart's content.
An NSWindowController (as well as subclasses) are designed to control
the window (a view object), not to *be* a window. Possibly I'm
misunderstanding your situation, however...
Hope this helps!
John
On Dec 13, 2003, at 2: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?
Thanks.
J. Reece
Technical & Marketing Director
The Ideas Studio
email@hidden
www.ideasstudio.com
_______________________________________________
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.