Changeset View
Changeset View
Standalone View
Standalone View
src/qt/macnotificationhandler.mm
// Copyright (c) 2011-2013 The Bitcoin Core developers | // Copyright (c) 2011-2013 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "macnotificationhandler.h" | #include "macnotificationhandler.h" | ||||
#undef slots | #undef slots | ||||
#import <objc/runtime.h> | #import <objc/runtime.h> | ||||
#include <Cocoa/Cocoa.h> | #include <Cocoa/Cocoa.h> | ||||
// Add an obj-c category (extension) to return the expected bundle identifier | // Add an obj-c category (extension) to return the expected bundle identifier | ||||
@implementation NSBundle(returnCorrectIdentifier) | @implementation NSBundle(returnCorrectIdentifier) | ||||
- (NSString *)__bundleIdentifier | - (NSString *)__bundleIdentifier | ||||
{ | { | ||||
if (self == [NSBundle mainBundle]) { | if (self == [NSBundle mainBundle]) { | ||||
return @"org.bitcoincash.BitcoinABC-Qt"; | return @"org.bitcoinabc.BitcoinABC-Qt"; | ||||
} else { | } else { | ||||
return [self __bundleIdentifier]; | return [self __bundleIdentifier]; | ||||
} | } | ||||
} | } | ||||
@end | @end | ||||
void MacNotificationHandler::showNotification(const QString &title, const QString &text) | void MacNotificationHandler::showNotification(const QString &title, const QString &text) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |