[Feature-Nag] Ability to call modal dialogs/sheets with input?
[Feature-Nag] Ability to call modal dialogs/sheets with input?
- Subject: [Feature-Nag] Ability to call modal dialogs/sheets with input?
- From: Colin Cornaby <email@hidden>
- Date: Sun, 25 Jul 2004 21:28:25 -0700
I used to work in an older Apple language called HyperTalk way back
when I had my Mac SE. HyperTalk had a very simple function called
Answer. You used it like this:
Answer "This is a modal dialog" with "OK" or "Cancel"
At least thats how I remember it... It's been a long time... But
basically this works much like Cocoa's NSRunAlertPanel.
Now, HyperTalk had a similar command called ask. It might work like
this:
Ask "What is your credit card number?" with "Send" or "Don't send"
The difference between ask and answer is while answer only provided
buttons, ask also provided a text field for user reply. This made it
really easy to show a dialog to ask for a simple string you needed for
your application.
This is functionality which is surprisingly missing in Cocoa. It would
be nice to have a simple NSRunAlertPanelWithUserInput that just
provided a one line text field on the panel/sheet and returned the user
input. It would take a lot of time out of building applications because
I wouldn't have to build a text panel just to get the name of some new
item. If I missed an already existing function, feel free to let me
know. :)
_______________________________________________
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.