 
  		        abhimohata
CFUserNotificationDisplayAlert not showing alert window in macOS BigSur
I am intending to show an alert message in macOS through a C++ based application. I am using CFUserNotificationDisplayAlert for the same. Below is the piece of code that I have used to display the alert window which I have written in the .mm file:
CFOptionFlags cfRes;
CFUserNotificationDisplayAlert(0, kCFUserNotificationCautionAlertLevel,
                NULL, NULL, NULL,
                CFSTR("Message Header"),
                CFSTR("Message Body"),
                CFSTR("Ok"),
                NULL,
                NULL,
                &cfRes);
The above works fine on Catalina but does not show the alert window in BigSur. Is there anything I am missing ?
Popular Macos topics
                         
                      
                       
          
                When I purchased this Mac it was fast. However some months on and it is noticeably slower now, and where I notice it most is on starting ...
              
            
            
          
              New
 
          
                I’m not sure if this is a Big Sur issue or whether I’ve just noticed it, but on looking at my hard drive usage it says I have used  465.0...
              
            
            
          
              New
 
          
                I have a new MacBook Pro which I’m connecting to an external monitor. I know why it is heating but I want to know if anyone having the sa...
              
            
            
          
              New
 
          
                Since we’re talking about Mac, which of the filesystems should I use on an external hard drive (non-SSD), which I’ll be using with my Mac...
              
            
            
          
              New
 
          
                Just wasted hours trying to figure out why my Apple Magic keyboard 2 started lagging after the latest macOS upgrade - tried SMC and PRAM ...
              
            
            
          
              New
 
          
                I am intending to show an alert message in macOS through a C++ based application. I am using CFUserNotificationDisplayAlert for the same....
              
            
            
          
              New
 
          
                I have JAR application ready. i have apple account also. Please give me steps to signed app upload 
i try But getting error as below : 
A...
              
            
            
          
              New
 
          
                Dear forum, 
New on macos. Need to create a .pkg file on the command line. The tooling seems to be pkgbuild(1) and productbuild(1). My pr...
              
            
            
          
              New
 
          
                I am trying to draw NSPanels on texts of other apps using AXObserverAddNotification with the attribute of kAXValueChangedNotification on ...
              
            
            
          
              New
 
          
                For my iOS e2e test, sometimes the test is blocked by the Mac pop-up window alert. The possible pop-up as follows: 
Java Access Pop-up 
...
              
            
            
          
              New
Other popular topics
                         
                      
                       
          
                A thread that every forum needs! 
Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
              
            
            
          
              New
 
          
                Algorithms and data structures are much more than abstract concepts. Mastering them enables you to write code that runs faster and more e...
              
            
            
              
          
              New
 
          
                I’ve been really enjoying obsidian.md: 
 
It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
              
            
            
          
              New
 
          
                Please tell us what is your preferred monitor setup for programming(not gaming) and why you have chosen it. 
Does your monitor have eye p...
              
            
            
          
              New
 
          
                Learn different ways of writing concurrent code in Elixir and increase your application's performance, without sacrificing scalability or...
              
            
            
              
          
              New
 
          
                Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
              
            
            
              
          
              New
 
          
                Hi folks, 
I don’t know if I saw this here but, here’s a new programming language, called Roc 
Reminds me a bit of Elm and thus Haskell. ...
              
            
            
          
              New
 
          
                Author Spotlight 
Erin Dees 
@undees 
Welcome to our new author spotlight! We had the pleasure of chatting with Erin Dees, co-author of ...
              
            
            
          
              New
 
          
                Big O Notation can make your code faster by orders of magnitude. Get the hands-on info you need to master data structures and algorithms ...
              
            
            
              
          
              New
 
          
                Node.js v22.14.0 has been released. 
Link: Release 2025-02-11, Version 22.14.0 'Jod' (LTS), @aduh95 · nodejs/node · GitHub
              
            
            
              
          
              New
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /python
- /rails
- /js
- /security
- /go
- /swift
- /vim
- /clojure
- /haskell
- /emacs
- /java
- /svelte
- /onivim
- /typescript
- /kotlin
- /c-plus-plus
- /crystal
- /tailwind
- /react
- /gleam
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /opensuse
- /html
- /centos
- /php
- /zig
- /deepseek
- /scala
- /sublime-text
- /lisp
- /textmate
- /react-native
- /nixos
- /debian
- /agda
- /kubuntu
- /arch-linux
- /django
- /revery
- /ubuntu
- /deno
- /spring
- /manjaro
- /nodejs
- /diversity
- /lua
- /julia
- /c
- /slackware

 
    




