I have a HUD window that has some labels on it, and I want this to show when the user presses a button. I know this is simple, but I can't get it to show again unless I restart my program.
Sincerely,
Kevin
To hide hudWindow
:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
[hudWindow orderOut:nil]; // to hide it
}
Then on button press:
- (IBAction)showWindow:(id)sender {
[hudWindow makeKeyAndOrderFront:nil]; // to show it
}
In IB, go to the window's attributes inspector and make sure that "Released when closed" isn't checked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With