Question: Objective-C / Cocoa: How do I revert a window (and all controls on it) to Interface Builder defaults?

Question

Objective-C / Cocoa: How do I revert a window (and all controls on it) to Interface Builder defaults?

Answers 0
Added at 2017-01-01 21:01
Tags
Question

I got a Window with several controls and labels loaded from xib. At runtime some label titles are set and some buttons are disabled. I want to revert everything to the state where the program started.

I can do this like:

[button setTitle:@"Start"];
[button setEnabled:@"YES"];
myLabel.stringValue = str;

etc.

I rather revert the whole Window to the xib values. How can this be done?

Answers to

Objective-C / Cocoa: How do I revert a window (and all controls on it) to Interface Builder defaults?

Source Show
◀ Wstecz