I have a HUD window with an inscription on it, and I want it to be shown when the user clicks a button. I know that it is simple, but I cannot get it to show again unless I restart my program.
Yours faithfully,
Kevin
To hide hudWindow :
hudWindow
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { [hudWindow orderOut:nil]; // to hide it }
Then press the button:
- (IBAction)showWindow:(id)sender { [hudWindow makeKeyAndOrderFront:nil]; // to show it }
In IB, go to the window attribute inspector and make sure that "Issued at close" is unchecked.