回答編集履歴
1
誤字の修正
test
CHANGED
@@ -12,11 +12,11 @@
|
|
12
12
|
|
13
13
|
{
|
14
14
|
|
15
|
-
// Button1押下時
|
15
|
+
// Button1押下時(メニュー有効化)
|
16
16
|
|
17
17
|
let myItem = NSApplication.sharedApplication().mainMenu?.itemAtIndex(0)?.submenu?.itemAtIndex(0)
|
18
18
|
|
19
|
-
myItem!.enabled =
|
19
|
+
myItem!.enabled = true
|
20
20
|
|
21
21
|
}
|
22
22
|
|
@@ -26,11 +26,11 @@
|
|
26
26
|
|
27
27
|
{
|
28
28
|
|
29
|
-
// Button2押下時
|
29
|
+
// Button2押下時(メニュー無効化)
|
30
30
|
|
31
31
|
let myItem = NSApplication.sharedApplication().mainMenu?.itemAtIndex(0)?.submenu?.itemAtIndex(0)
|
32
32
|
|
33
|
-
myItem!.enabled =
|
33
|
+
myItem!.enabled = false
|
34
34
|
|
35
35
|
}
|
36
36
|
|