• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Opening an NSWindow programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Opening an NSWindow programatically
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny
  • Next by Date: Re: Opening an NSWindow programatically
  • Previous by thread: Re: NOT solved: using long double math functions like sinl() with Cocoa
  • Next by thread: Re: Opening an NSWindow programatically
  • Index(es):
    • Date
    • Thread