• 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: Dialog-based Apps?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dialog-based Apps?


  • Subject: Re: Dialog-based Apps?
  • From: Michael Dagate <email@hidden>
  • Date: Sun, 1 Jul 2001 11:26:23 -0500

This is actually quite simple. In Project Builder, use File | New Project to create a "Cocoa Application" project. At this point, you can build it and see a main window.

Open the file MainMenu.nib (it appears under "Resources" in the Groups and Files list in Project Builder). You should now see Interface Builder and the open nib file. In the nib file, you should find an icon for a window object called "Window." This is your main window.

If necessary, double click the Window icon to open the window object. You can now drag and drop controls onto the window as needed. You can also drag new window objects from the Cocoa-Windows Palette to the desktop to create new windows. This will add window object icons to your nib file.

Note: This is the quick and dirty way to get a simple dialog-based app. I more sophisticated app will separate window resources into other nib files with their own window controllers, etc.

I hope this helps,
Michael


On Saturday, June 30, 2001, at 03:27 PM, Steve Woodward wrote:

Please forgive me if this topic has been addressed before, I recently joined the list. I've been working my way through 'Learning Cocoa", and am starting to get a grasp of Cocoa development. My question is: how does one implement a dialog-based app? The Document based app doesn't really apply. Do you simply create each dialog with it's own nib file? I know this may seem like a silly question, but I could not really find a good example of a multiple window based application that was not based on documents. Thanks in advance for any input.

Steve W
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: Dialog-based Apps?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: NSWindowControllers and document-based app.
  • Next by Date: RE: [HELP] How to change Desktop background pic in OSX from Cocoa-Java?
  • Previous by thread: NSWindowControllers and document-based app.
  • Next by thread: Re: Dialog-based Apps?
  • Index(es):
    • Date
    • Thread