• 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
Re: [newbie] Multi-window applications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie] Multi-window applications?


  • Subject: Re: [newbie] Multi-window applications?
  • From: "Carlos A. Weber" <email@hidden>
  • Date: Fri, 11 Oct 2002 17:50:07 -1000

On Friday, Oct 11, 2002, at 08:13 Pacific/Honolulu, Chris Ross wrote:

Hello. I know this is a newbie question, and I apologize. I've read through
much of the documentation and information I can find, but am still fuzzy on
a couple of things.

I want an application that starts up with a configuration dialog/window,
then proceeds to doing whatever you tell it to do in that dialog (which
in my case is always in a single other window). With IB I have constructed
two windows, and set the config window to come up on startup, and the
other not. The problem is, I've wired the button on the config window to
a method, and that all works. But, I can't figure out what I need to do to
get the next window mapped and operating.

- I read a lot about Document and Document controllers for doing this
sort of thing, but I'm not actually working with documents at all. Do
I still have to have a Document-based application to do multiple windows?
- Do I have to have a separate NIB file for the second window?
- Do I have to manually construct an NSWindowController for that second
window, or should IB have done it for me? If so, how to I use it?

Hopefully this will be an easy question to answer, and if you have
a pointer to a project or tutorial that walks through an app that raises
additional windows during program execution, that would be great!

Look at one of Apple's examples, called SimpleMultiWindow. It's on your computer, at

/Developer/Examples/InterfaceBuilder/SimpleMultiWindow/.

You are on the right track. You don't need a Document-based app. You should have a separate nib for your second window, and you will need to write a controller subclass for it (it needn't be a subclass of NSWindowController, tho; you could equally well subclass NSObject). The example will get you going.
_______________________________________________
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.
References: 
 >[newbie] Multi-window applications? (From: Chris Ross <email@hidden>)

  • Prev by Date: Re: Regional Cocoa developer groups
  • Next by Date: Centering an NSImageView in NSScrollView (again)
  • Previous by thread: [newbie] Multi-window applications?
  • Next by thread: East Coast Cocoa Retreat? Re: Toronto cocoa programmers?
  • Index(es):
    • Date
    • Thread