File tree 2 files changed +9
-13
lines changed
2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ extern NSString* const SSYAboutPanelHelpAnchorAcknowledgements ;
4
4
5
5
@class ScrollingTextView;
6
6
7
- @interface SSYAboutPanelController : NSObject
7
+ @interface SSYAboutPanelController : NSWindowController
8
8
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)
9
9
<NSWindowDelegate >
10
10
#endif
Original file line number Diff line number Diff line change @@ -227,19 +227,15 @@ - (void) scrollOneUnit
227
227
228
228
#pragma mark * PUBLIC CLASS METHODS
229
229
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" ] ;
240
235
}
241
-
242
- return sharedInstance;
236
+
237
+ [sharedInstance showWindow: self ] ;
238
+ return sharedInstance ;
243
239
}
244
240
245
241
You can’t perform that action at this time.
0 commit comments