Opening an NSWindow programatically
Opening an NSWindow programatically
- Subject: Opening an NSWindow programatically
- From: Ryan Homer <email@hidden>
- Date: Thu, 11 Jan 2007 20:25:08 -0500
I have a MainMenu.nib in which I have a window called
"ConversationWindow". This window is NOT the main window that opens
when the application is launched.
Let's say that I click on a button in the main window and I receive
that message in my controller in a method called startConversation.
In this method, I am accessing an instance of a class that will be
responsible for opening the conversation window and handling the
chat. So, we have something like this:
- (IBOutlet)startConversation:(id)sender
{
// assuming chatWindow is an object of type XXChatWindow *
[chatWindow initiateChatWith:user];
}
Now, in my XXChatWindow class, how would I reference the
"ConversationWindow" from my nib file?
- (void)initiateChatWith:(NSString *)user
{
// how do I "orderFront" my ConversationWindow from my MainMenu.nib?
}
Thanks in advance!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden