macOS: 'NSUserNotification' is deprecated #20973

issue rex4539 opened this issue on January 20, 2021
  1. rex4539 commented at 8:48 PM on January 20, 2021: contributor
    qt/macnotificationhandler.mm:27:9: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be
          replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
            NSUserNotification* userNotification = [[NSUserNotification alloc] init];
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 
          'NSUserNotification' has been explicitly marked deprecated here
    [@interface](/bitcoin-bitcoin/contributor/interface/) NSUserNotification : NSObject <NSCopying> {
               ^
    qt/macnotificationhandler.mm:27:50: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should
          be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
            NSUserNotification* userNotification = [[NSUserNotification alloc] init];
                                                     ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 
          'NSUserNotification' has been explicitly marked deprecated here
    [@interface](/bitcoin-bitcoin/contributor/interface/) NSUserNotification : NSObject <NSCopying> {
               ^
    qt/macnotificationhandler.mm:30: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] deliverNotification: userNotification];
              ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 
          'NSUserNotificationCenter' has been explicitly marked deprecated here
    [@interface](/bitcoin-bitcoin/contributor/interface/) NSUserNotificationCenter : NSObject {
               ^
    3 warnings generated.
    
  2. rex4539 added the label Bug on Jan 20, 2021
  3. jarolrod commented at 9:21 PM on January 20, 2021: member

    This has already been opened here. This should be closed in favor of the issue open on the Bitcoin Core GUI Repo.

  4. rex4539 closed this on Jan 20, 2021

  5. fanquake removed the label Bug on Jan 20, 2021
  6. fanquake locked this on Jan 20, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-29 03:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me