Created
December 31, 2023 06:15
-
-
Save Bens0/38b39cf76fdd1b89cccc130c055bb6cf to your computer and use it in GitHub Desktop.
Error while compiling knotifications on MacOS 12+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 69%] Built target translations_1 | |
[ 69%] Built target translations_2 | |
[ 69%] Built target translations_3 | |
[ 69%] Built target translations_4 | |
[ 69%] Built target translations_5 | |
[ 69%] Built target translations_6 | |
[ 69%] Built target translations_7 | |
[ 69%] Built target translations_8 | |
[ 69%] Built target translations_9 | |
[ 69%] Built target translations_10 | |
[ 69%] Built target translations_11 | |
[ 69%] Built target translations_12 | |
[ 69%] Built target translations_13 | |
[ 69%] Built target translations_14 | |
[ 69%] Built target translations_15 | |
[ 69%] Built target translations_16 | |
[ 69%] Built target translations_17 | |
[ 69%] Built target translations_18 | |
[ 69%] Built target translations_19 | |
[ 69%] Built target translations_20 | |
[ 69%] Built target translations_21 | |
[ 69%] Built target translations_22 | |
[ 69%] Built target translations_23 | |
[ 69%] Built target translations_24 | |
[ 69%] Built target translations_25 | |
[ 69%] Built target translations_26 | |
[ 69%] Built target translations_27 | |
[ 69%] Built target translations_28 | |
[ 69%] Built target translations_29 | |
[ 69%] Built target translations_30 | |
[ 69%] Built target translations_31 | |
[ 69%] Built target translations_32 | |
[ 69%] Built target translations_33 | |
[ 69%] Built target translations_34 | |
[ 69%] Built target translations_35 | |
[ 69%] Built target translations_36 | |
[ 69%] Built target translations_37 | |
[ 69%] Built target translations_38 | |
[ 69%] Built target translations_39 | |
[ 69%] Built target translations_40 | |
[ 69%] Built target translations_41 | |
[ 69%] Built target translations_42 | |
[ 69%] Built target translations_43 | |
[ 69%] Built target translations_44 | |
[ 69%] Built target translations_45 | |
[ 69%] Built target translations_46 | |
[ 69%] Built target translations_47 | |
[ 69%] Built target translations_48 | |
[ 69%] Built target translations_49 | |
[ 69%] Built target translations_50 | |
[ 69%] Built target translations_51 | |
[ 69%] Built target translations_52 | |
[ 69%] Built target translations_53 | |
[ 69%] Built target translations_54 | |
[ 69%] Built target translations_55 | |
[ 69%] Built target translations_56 | |
[ 69%] Built target translations_57 | |
[ 69%] Built target translations_58 | |
[ 69%] Built target translations_59 | |
[ 69%] Built target translations_60 | |
[ 69%] Built target translations_61 | |
[ 69%] Built target translations_62 | |
[ 69%] Built target translations_63 | |
[ 69%] Built target translations_64 | |
[ 69%] Built target translations_65 | |
[ 69%] Built target translations_66 | |
[ 69%] Built target translations_67 | |
[ 69%] Built target translations_68 | |
[ 69%] Built target translations_69 | |
[ 69%] Built target translations_70 | |
[ 69%] Built target translations_71 | |
[ 69%] Built target translations_72 | |
[ 69%] Built target translations_73 | |
[ 69%] Built target translations_74 | |
[ 69%] Built target translations_75 | |
[ 69%] Built target translations_76 | |
[ 69%] Built target translations_77 | |
[ 69%] Built target translations_78 | |
[ 69%] Built target translations_79 | |
[ 69%] Built target translations_80 | |
[ 69%] Built target translations_81 | |
[ 69%] Built target translations_82 | |
[ 69%] Built target translations_83 | |
[ 69%] Built target translations_84 | |
[ 69%] Built target translations_85 | |
[ 69%] Built target translations_86 | |
[ 69%] Built target translations_87 | |
[ 69%] Built target translations_88 | |
[ 69%] Built target translations_89 | |
[ 69%] Built target translations_90 | |
[ 69%] Built target translations_91 | |
[ 69%] Built target translations_92 | |
[ 69%] Built target translations_93 | |
[ 69%] Built target translations_94 | |
[ 69%] Built target translations_95 | |
[ 69%] Built target translations_96 | |
[ 69%] Built target translations_97 | |
[ 69%] Built target translations_98 | |
[ 69%] Built target translations_99 | |
[ 69%] Built target translations_100 | |
[ 69%] Built target translations_101 | |
[ 69%] Automatic MOC for target KF6Notifications | |
[ 69%] Built target KF6Notifications_autogen | |
Consolidate compiler generated dependencies of target KF6Notifications | |
[ 69%] Building CXX object src/CMakeFiles/KF6Notifications.dir/notifybymacosnotificationcenter.mm.o | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:41:33: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:41:94: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:48:33: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (void)userNotificationCenter:(NSUserNotificationCenter *)center didDeliverNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:48:91: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (void)userNotificationCenter:(NSUserNotificationCenter *)center didDeliverNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:55:34: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (void) userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:55:93: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (void) userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:64:10: warning: 'NSUserNotificationActivationTypeReplied' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
case NSUserNotificationActivationTypeReplied: | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:15:28: note: 'NSUserNotificationActivationType' has been explicitly marked deprecated here | |
typedef NS_ENUM(NSInteger, NSUserNotificationActivationType) { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:67:10: warning: 'NSUserNotificationActivationTypeContentsClicked' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
case NSUserNotificationActivationTypeContentsClicked: { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:15:28: note: 'NSUserNotificationActivationType' has been explicitly marked deprecated here | |
typedef NS_ENUM(NSInteger, NSUserNotificationActivationType) { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:70:75: error: member reference type 'KNotificationAction *' is a pointer; did you mean to use '->'? | |
if (!originNotification || originNotification->defaultAction().isNull()) { | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | |
-> | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:70:76: error: no member named 'isNull' in 'KNotificationAction' | |
if (!originNotification || originNotification->defaultAction().isNull()) { | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:73:40: error: 'activate' is a private member of 'KNotification' | |
Q_EMIT originNotification->activate(); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:35: note: declared private here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:73:49: error: too few arguments to function call, single argument 'action' was not specified | |
Q_EMIT originNotification->activate(); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:35: note: 'activate' declared here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:76:10: warning: 'NSUserNotificationActivationTypeActionButtonClicked' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
case NSUserNotificationActivationTypeActionButtonClicked: { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:15:28: note: 'NSUserNotificationActivationType' has been explicitly marked deprecated here | |
typedef NS_ENUM(NSInteger, NSUserNotificationActivationType) { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:82:40: error: 'activate' is a private member of 'KNotification' | |
Q_EMIT originNotification->activate(1); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:35: note: declared private here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:82:49: error: reference to type 'const QString' could not bind to an rvalue of type 'int' | |
Q_EMIT originNotification->activate(1); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:59: note: passing argument to parameter 'action' here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:85:10: warning: 'NSUserNotificationActivationTypeAdditionalActionClicked' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
case NSUserNotificationActivationTypeAdditionalActionClicked: { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:15:28: note: 'NSUserNotificationActivationType' has been explicitly marked deprecated here | |
typedef NS_ENUM(NSInteger, NSUserNotificationActivationType) { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:91:40: error: 'activate' is a private member of 'KNotification' | |
Q_EMIT originNotification->activate([notification.additionalActivationAction.identifier intValue] + 1); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:35: note: declared private here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:91:49: error: reference to type 'const QString' could not bind to an rvalue of type 'int' | |
Q_EMIT originNotification->activate([notification.additionalActivationAction.identifier intValue] + 1); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:59: note: passing argument to parameter 'action' here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:108:7: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:m_delegate]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:113:7: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate: nil]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:117:13: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:117:62: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:118:10: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
for (NSUserNotification *deliveredNotification in deliveredNotifications) { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:120:11: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] removeDeliveredNotification: deliveredNotification]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:136:13: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:136:62: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:137:10: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
for (NSUserNotification *deliveredNotification in deliveredNotifications) { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:139:11: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] removeDeliveredNotification: deliveredNotification]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:150:5: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSUserNotification *osxNotification = [[[NSUserNotification alloc] init] autorelease]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:150:46: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSUserNotification *osxNotification = [[[NSUserNotification alloc] init] autorelease]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:183:78: error: member reference type 'KNotificationAction *const' is a pointer; did you mean to use '->'? | |
osxNotification.actionButtonTitle = notification->actions().at(0).toNSString(); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | |
-> | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:183:79: error: no member named 'toNSString' in 'KNotificationAction' | |
osxNotification.actionButtonTitle = notification->actions().at(0).toNSString(); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:187:24: warning: 'NSUserNotificationAction' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSMutableArray<NSUserNotificationAction*> *actions = [[NSMutableArray alloc] init]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:104:12: note: 'NSUserNotificationAction' has been explicitly marked deprecated here | |
@interface NSUserNotificationAction : NSObject <NSCopying> | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:189:13: warning: 'NSUserNotificationAction' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSUserNotificationAction *action = | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:104:12: note: 'NSUserNotificationAction' has been explicitly marked deprecated here | |
@interface NSUserNotificationAction : NSObject <NSCopying> | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:191:83: error: member reference type 'KNotificationAction *const' is a pointer; did you mean to use '->'? | |
title: notification->actions().at(index).toNSString()]; | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | |
-> | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:191:84: error: no member named 'toNSString' in 'KNotificationAction' | |
title: notification->actions().at(index).toNSString()]; | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:190:18: warning: 'NSUserNotificationAction' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[NSUserNotificationAction actionWithIdentifier: [NSString stringWithFormat:@"%d", index] | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:104:12: note: 'NSUserNotificationAction' has been explicitly marked deprecated here | |
@interface NSUserNotificationAction : NSObject <NSCopying> | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:197:7: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification: osxNotification]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:206:13: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:206:62: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:207:10: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
for (NSUserNotification *deliveredNotification in deliveredNotifications) { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:215:15: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] removeDeliveredNotification: deliveredNotification]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
30 warnings and 12 errors generated. | |
make[2]: *** [src/CMakeFiles/KF6Notifications.dir/notifybymacosnotificationcenter.mm.o] Error 1 | |
make[1]: *** [src/CMakeFiles/KF6Notifications.dir/all] Error 2 | |
make: *** [all] Error 2 | |
➜ build make < error.log | |
zsh: no such file or directory: error.log | |
➜ build make > error.log | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:41:33: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:41:94: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:48:33: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (void)userNotificationCenter:(NSUserNotificationCenter *)center didDeliverNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:48:91: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (void)userNotificationCenter:(NSUserNotificationCenter *)center didDeliverNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:55:34: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (void) userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:55:93: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
- (void) userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:64:10: warning: 'NSUserNotificationActivationTypeReplied' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
case NSUserNotificationActivationTypeReplied: | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:15:28: note: 'NSUserNotificationActivationType' has been explicitly marked deprecated here | |
typedef NS_ENUM(NSInteger, NSUserNotificationActivationType) { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:67:10: warning: 'NSUserNotificationActivationTypeContentsClicked' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
case NSUserNotificationActivationTypeContentsClicked: { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:15:28: note: 'NSUserNotificationActivationType' has been explicitly marked deprecated here | |
typedef NS_ENUM(NSInteger, NSUserNotificationActivationType) { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:70:75: error: member reference type 'KNotificationAction *' is a pointer; did you mean to use '->'? | |
if (!originNotification || originNotification->defaultAction().isNull()) { | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | |
-> | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:70:76: error: no member named 'isNull' in 'KNotificationAction' | |
if (!originNotification || originNotification->defaultAction().isNull()) { | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:73:40: error: 'activate' is a private member of 'KNotification' | |
Q_EMIT originNotification->activate(); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:35: note: declared private here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:73:49: error: too few arguments to function call, single argument 'action' was not specified | |
Q_EMIT originNotification->activate(); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:35: note: 'activate' declared here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:76:10: warning: 'NSUserNotificationActivationTypeActionButtonClicked' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
case NSUserNotificationActivationTypeActionButtonClicked: { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:15:28: note: 'NSUserNotificationActivationType' has been explicitly marked deprecated here | |
typedef NS_ENUM(NSInteger, NSUserNotificationActivationType) { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:82:40: error: 'activate' is a private member of 'KNotification' | |
Q_EMIT originNotification->activate(1); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:35: note: declared private here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:82:49: error: reference to type 'const QString' could not bind to an rvalue of type 'int' | |
Q_EMIT originNotification->activate(1); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:59: note: passing argument to parameter 'action' here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:85:10: warning: 'NSUserNotificationActivationTypeAdditionalActionClicked' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
case NSUserNotificationActivationTypeAdditionalActionClicked: { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:15:28: note: 'NSUserNotificationActivationType' has been explicitly marked deprecated here | |
typedef NS_ENUM(NSInteger, NSUserNotificationActivationType) { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:91:40: error: 'activate' is a private member of 'KNotification' | |
Q_EMIT originNotification->activate([notification.additionalActivationAction.identifier intValue] + 1); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:35: note: declared private here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:91:49: error: reference to type 'const QString' could not bind to an rvalue of type 'int' | |
Q_EMIT originNotification->activate([notification.additionalActivationAction.identifier intValue] + 1); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Users/ember/Downloads/knotifications-5.247.0/src/knotification.h:639:59: note: passing argument to parameter 'action' here | |
KNOTIFICATIONS_NO_EXPORT void activate(const QString &action); | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:108:7: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:m_delegate]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:113:7: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate: nil]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:117:13: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:117:62: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:118:10: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
for (NSUserNotification *deliveredNotification in deliveredNotifications) { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:120:11: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] removeDeliveredNotification: deliveredNotification]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:136:13: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:136:62: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:137:10: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
for (NSUserNotification *deliveredNotification in deliveredNotifications) { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:139:11: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] removeDeliveredNotification: deliveredNotification]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:150:5: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSUserNotification *osxNotification = [[[NSUserNotification alloc] init] autorelease]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:150:46: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSUserNotification *osxNotification = [[[NSUserNotification alloc] init] autorelease]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:183:78: error: member reference type 'KNotificationAction *const' is a pointer; did you mean to use '->'? | |
osxNotification.actionButtonTitle = notification->actions().at(0).toNSString(); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | |
-> | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:183:79: error: no member named 'toNSString' in 'KNotificationAction' | |
osxNotification.actionButtonTitle = notification->actions().at(0).toNSString(); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:187:24: warning: 'NSUserNotificationAction' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSMutableArray<NSUserNotificationAction*> *actions = [[NSMutableArray alloc] init]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:104:12: note: 'NSUserNotificationAction' has been explicitly marked deprecated here | |
@interface NSUserNotificationAction : NSObject <NSCopying> | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:189:13: warning: 'NSUserNotificationAction' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSUserNotificationAction *action = | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:104:12: note: 'NSUserNotificationAction' has been explicitly marked deprecated here | |
@interface NSUserNotificationAction : NSObject <NSCopying> | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:191:83: error: member reference type 'KNotificationAction *const' is a pointer; did you mean to use '->'? | |
title: notification->actions().at(index).toNSString()]; | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | |
-> | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:191:84: error: no member named 'toNSString' in 'KNotificationAction' | |
title: notification->actions().at(index).toNSString()]; | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:190:18: warning: 'NSUserNotificationAction' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[NSUserNotificationAction actionWithIdentifier: [NSString stringWithFormat:@"%d", index] | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:104:12: note: 'NSUserNotificationAction' has been explicitly marked deprecated here | |
@interface NSUserNotificationAction : NSObject <NSCopying> | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:197:7: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification: osxNotification]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:206:13: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:206:62: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
NSArray<NSUserNotification *> *deliveredNotifications = [NSUserNotificationCenter defaultUserNotificationCenter].deliveredNotifications; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:207:10: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
for (NSUserNotification *deliveredNotification in deliveredNotifications) { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here | |
@interface NSUserNotification : NSObject <NSCopying> { | |
^ | |
/Users/ember/Downloads/knotifications-5.247.0/src/notifybymacosnotificationcenter.mm:215:15: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations] | |
[[NSUserNotificationCenter defaultUserNotificationCenter] removeDeliveredNotification: deliveredNotification]; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here | |
@interface NSUserNotificationCenter : NSObject { | |
^ | |
30 warnings and 12 errors generated. | |
make[2]: *** [src/CMakeFiles/KF6Notifications.dir/notifybymacosnotificationcenter.mm.o] Error 1 | |
make[1]: *** [src/CMakeFiles/KF6Notifications.dir/all] Error 2 | |
make: *** [all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment