• 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
[Feature-Nag] Ability to call modal dialogs/sheets with input?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.


  • Follow-Ups:
    • Re: [Feature-Nag] Ability to call modal dialogs/sheets with input?
      • From: Hasan Diwan <email@hidden>
    • Re: [Feature-Nag] Ability to call modal dialogs/sheets with input?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: NSMutableArray, TableView, Bindings and Sorting
  • Next by Date: Re: Startup Questons
  • Previous by thread: Authenticated web services
  • Next by thread: Re: [Feature-Nag] Ability to call modal dialogs/sheets with input?
  • Index(es):
    • Date
    • Thread