Skip to content

Commit c7bd8dd

Browse files
committed
• Removed call to deprecated +[[NSBundle loadNibNamed:owner:]
1 parent 32ce391 commit c7bd8dd

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

SSYAboutPanelController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extern NSString* const SSYAboutPanelHelpAnchorAcknowledgements ;
44

55
@class ScrollingTextView;
66

7-
@interface SSYAboutPanelController : NSObject
7+
@interface SSYAboutPanelController : NSWindowController
88
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)
99
<NSWindowDelegate>
1010
#endif

SSYAboutPanelController.m

+8-12
Original file line numberDiff line numberDiff line change
@@ -227,19 +227,15 @@ - (void) scrollOneUnit
227227

228228
#pragma mark * PUBLIC CLASS METHODS
229229

230-
+ (SSYAboutPanelController *) sharedInstance
231-
{
232-
static SSYAboutPanelController *sharedInstance = nil;
233-
234-
235-
if (sharedInstance == nil)
236-
{
237-
sharedInstance = [[self alloc] init];
238-
[NSBundle loadNibNamed: @"SSYAboutPanel.nib"
239-
owner: sharedInstance] ;
230+
+ (SSYAboutPanelController*) sharedInstance {
231+
static SSYAboutPanelController* sharedInstance = nil;
232+
233+
if (sharedInstance == nil) {
234+
sharedInstance = [[self alloc] initWithWindowNibName:@"SSYAboutPanel"] ;
240235
}
241-
242-
return sharedInstance;
236+
237+
[sharedInstance showWindow:self] ;
238+
return sharedInstance ;
243239
}
244240

245241

0 commit comments

Comments
 (0)