Good ol' modal dialogs
Good ol' modal dialogs
- Subject: Good ol' modal dialogs
- From: Steve Mills <email@hidden>
- Date: Tue, 5 Nov 2002 10:46:12 -0600
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.