The Apple documentation for method [NSBundle loadNibNamed:owner:] indicates that it’s deprecated in OS X 10.8. They seem to indicate that the instance method [NSBundle loadNibNamed:owner:topLevelObjects:] should be used instead. When I try to use the code below however, I get exceptions when I close the first instance of the About window and try to open the second.
NSBundle *appBundle = [NSBundle mainBundle];
[appBundle loadNibNamed:@“PanelAbout” owner:self topLevelObjects:nil];
[[self panelAbout] makeKeyAndOrderFront:nil];
The panel is declared as a property in AppController like so:
@property (strong) IBOutlet NSPanel *panelAbout;
Any help is appreciated. Thanks.