Looking at OS X's built-in applications, such as the WiFi and Bluetooth assistant, they seem to have a list that can be dynamically changed.
However, I cannot seem to change the menu without destroying and recreating it (i.e. adding and removing at an index). I am not convinced that this is the best way. Is there a better way to achieve this in Swift?
Asked
Active
Viewed 539 times
1

jyoonPro
- 1,661
- 1
- 16
- 41
-
Have you tried using the `NSMenu` methods for adding and removing menu items? – JWWalker Jun 11 '15 at 23:24
-
@JWWalker That's what I meant by destroying and recreating. – jyoonPro Jun 12 '15 at 06:57
-
There are `NSMenuItem` methods for changing the title, state, and image. Are those not sufficient? – JWWalker Jun 12 '15 at 15:13