Sean
Sean

Reputation: 5820

Singleton NSWindowController won't reopen window after close

I have a singleton NSWindowController (ProjectInfoHUDController) that won't reopen after it has been closed. The object is persisting in memory which I know because any calls made to [ProjectInfoHUDController sharedInstance] both before and after the window has been closed return the same memory address. Both makeKeyAndOrderFront: and controller.window.isVisible = YES do nothing.

Upvotes: 3

Views: 1245

Answers (1)

Sean
Sean

Reputation: 5820

Turned out the window was not connected in IB. Another lesson in looking for the obvious solution first.

Upvotes: 4

Related Questions