Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (8 sloc) 290 Bytes
var alert = [COSAlertWindow new];
[alert setMessageText:"Pick a number"];
[alert setInformativeText:"This is informative"];
[alert addTextLabelWithValue:"Say hey:"];
[alert addTextFieldWithValue:"Hey"];
[alert runModal];
var result = [[alert viewAtIndex:1] stringValue]
print(result);