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# - SharpDX Toolkit models rendering inside out -

c# - ajax - How to receive data both html and json from server? -