It’s possible that the “funk” sound is coming from the other app if it still has keyboard focus. Try attaching to that instead and seeing if it hits NSBeep.
Saagar Jha > On Jun 25, 2020, at 02:09, Gabriel Zachmann via Cocoa-dev > <cocoa-dev@lists.apple.com> wrote: > > >> >> Set a symbolic breakpoint on NSBeep and see whether it?s your code that?s >> calling it. >> >> > > Thanks a lot for the hint! > > I think I managed to do that (it's a bit tricky, since my app gets launched > in fullscreen mode by some other app). > Alas, the debugger did not break at any time when I heard the "Funk" sound. > So, I guess, we can conclude that my app does not call NSBeep(). > > Maybe, the keyboard focus is still on some other app? > and that's why I 'm hearing the "funk" sound, because I am typing a key that > is meaningful for my app, but not for the other app. > > Or could it be that my app still has some other (hidden) windows open, behind > the fullscreen window, which somehow produce the "funk" sound? > > > Best regards, Gabriel > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/saagar%40saagarjha.com > > This email sent to saa...@saagarjha.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com