|
@@ -30,6 +30,15 @@ NSWindowDelegate>
|
|
|
|
|
|
}
|
|
|
|
|
|
++ (KMRecommondPopWindow *)defaultWindow {
|
|
|
+ static KMRecommondPopWindow *singleton = nil;
|
|
|
+ static dispatch_once_t pred;
|
|
|
+ dispatch_once(&pred, ^{
|
|
|
+ singleton = [[KMRecommondPopWindow alloc] init];
|
|
|
+ });
|
|
|
+ return singleton;
|
|
|
+}
|
|
|
+
|
|
|
- (id)init {
|
|
|
if (self = [super initWithWindowNibName:@"KMRecommondPopWindow"]) {
|
|
|
|