コードを GUI にリンクしようとしています。しかし、それは私をさせません。
現在、GUI にラベル、ボタン、およびテキスト フィールドがあります。これは、GUI の私のコードです。
-- IBOutlets
property window : missing value
on buttonClicked_(sender)
display alert "Hello there " & (stringValue() of textField)
end buttonClicked_
on applicationWillFinishLaunching_(aNotification)
-- Insert code here to initialize your application before any files are opened
end applicationWillFinishLaunching_
on applicationShouldTerminate_(sender)
-- Insert code here to do any housekeeping before your application quits
return current application's NSTerminateNow
end applicationShouldTerminate_
App Delegate ツールを使用しようとすると、機能しません。GUI上のパーツにドラッグすると青い線ができます。しかし、「アウトレット」の下に表示されるのは「ウィンドウ」だけです
プログラムを実行すると、GUI が表示されますが、コードが接続されていないため何も実行されません。
コードを GUI に接続するにはどうすればよいですか?
追加情報: Xcode 5.1