osx - Prevent NSMenu from creating multiple instances of same NSWindow when clicked -


i have simple cocoa application launches nswindow when nsmenu item clicked. initiating window via segue. problem when click menu item multiple times keeps creating new windows instead of bringing existing window foreground. how can prevent behavior? in advance.

  1. select destination window controller
  2. click attribute inspector , select under presentation "single" instead of "multiple"

single window instance


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -