|
@@ -143,6 +143,8 @@ NSPopoverDelegate>
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(expandPersonalCenterNotification:) name:@"ExpandPersonalCenter" object:nil];
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(closeMenu:) name:@"CloseMenuNotification" object:nil];
|
|
|
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(memberInfoChangeNotification:) name:KMMemberInfoChangeNotification object:nil];
|
|
|
+
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(subscriptionLoadedNotification:) name:KMIAPSubscriptionLoadedNotification object:nil];
|
|
|
}
|
|
|
|
|
@@ -621,11 +623,19 @@ NSPopoverDelegate>
|
|
|
}
|
|
|
|
|
|
- (IBAction)officeButtonAction:(id)sender {
|
|
|
+#if VERSION_FREE
|
|
|
#if VERSION_DMG
|
|
|
DMGEmbeddedOldWC *embeddedWC = [DMGEmbeddedOldWC currentFirstTrialWC:@"com.brother.pdfreaderpro.mac.product_2"];
|
|
|
[embeddedWC showWindow:nil];
|
|
|
[embeddedWC.window center];
|
|
|
#endif
|
|
|
+#else
|
|
|
+ [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypePro_Base];
|
|
|
+ [[KMProductCompareWC shared] showWindow:nil];
|
|
|
+
|
|
|
+#endif
|
|
|
+
|
|
|
}
|
|
|
|
|
|
- (NSAttributedString *)numberConvertColor:(NSColor*)color String:(NSString *)string {
|
|
@@ -786,6 +796,12 @@ NSPopoverDelegate>
|
|
|
[self reloadData];
|
|
|
});
|
|
|
}
|
|
|
+- (void)memberInfoChangeNotification:(NSNotification *)noti {
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ [self reloadData];
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
- (void)popOverCloseAction {
|
|
|
if (self.stopPopOverHide == NO) {
|