• 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: Good ol' modal dialogs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Good ol' modal dialogs


  • Subject: Re: Good ol' modal dialogs
  • From: Charles Srstka <email@hidden>
  • Date: Tue, 5 Nov 2002 17:14:00 -0600

You need to make a .nib file containing the window and controls. It's not that hard.

BTW, are you sure these windows really need to be modal?

Charles

On Tuesday, November 5, 2002, at 10:46 AM, Steve Mills wrote:

One thing that seems to be lacking (or I just haven't seen it) in the AppKit examples is modal dialogs used to get information from the user. Most examples just put the controls right in the main window, or they use an NSPanel only to display info to the user.

The app I'm working on will have a bunch of menu items that the user can use to apply different changes to the data. Each menu item needs its own dialog with various controls (like edit text fields) or custom views that the user can perform graphical manipulations.

From what I've gathered so far, it looks like each dialog needs its own .nib that will load as a result of choosing the matching menu item, and a special subclass of NSObject to load the .nib, run the dialog, and handle actions in the controls.

Is this really the easiest way to display modal dialogs? Using a palette or drawer in this case is wrong. Would I be better off just using Carbon to display and handle all the modal dialogs?

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.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.

  • Follow-Ups:
    • Re: Good ol' modal dialogs
      • From: Marco Binder <email@hidden>
References: 
 >Good ol' modal dialogs (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: [Newbie Q] Memory Management in Cocoa
  • Next by Date: NSTextField and Formatters
  • Previous by thread: Good ol' modal dialogs
  • Next by thread: Re: Good ol' modal dialogs
  • Index(es):
    • Date
    • Thread