Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MatthewF

macrumors newbie
Original poster
Jun 27, 2010
21
0
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
 
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?

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 ""
 
I was thinking something similar to an NSRunAlertPanel... Actually exactly like it but with a textfield for inputting data.


Thanks,
Matt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.