Input message box?

Discussion in 'Mac Programming' started by MatthewF, Jul 10, 2010.

  1. MatthewF macrumors newbie

    Joined:
    Jun 27, 2010
    #1
    Hey, they have one of these in Vb.net and they are quite useful though I can't find the code for it in obj-c. Any of you guys know how to make a input message box with an ok and cancel button and a textfield for inputting data?


    Thanks,
    Matt
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    With Interface Builder?

    Or paste this into Script Editor and run it:
    Code:
    tell application "System Events" to display dialog "Hello" with title "Title" default answer ""
     
  3. GorillaPaws macrumors 6502a

    GorillaPaws

    Joined:
    Oct 26, 2003
    Location:
    Richmond, VA
    #3
    Are you thinking of sheets? or alert dialogues?

    Or do you just want to build a window with buttons and fields on it?
     
  4. MatthewF thread starter macrumors newbie

    Joined:
    Jun 27, 2010
    #4
    I was thinking something similar to an NSRunAlertPanel... Actually exactly like it but with a textfield for inputting data.


    Thanks,
    Matt
     

Share This Page