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