I\'m developing an app on MacOS X with Xcode5.1
and there\'s an action I want to trigger everytime the user opens or shows a NSWindowController all I found was
If you really need to know the windows occlusion state go with @Cemen's answer, otherwise I'd recommend you just use the
viewWillAppear viewDidAppear
etc. of your windows contentViewController. Just subclass that and override it there.
contentViewController