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 -

spring - "Dispatcher has no subscribers" during startup -

how to prompt save As Box in Excel Interlop c# MVC 4 -