Thanks a lot for the hint. 

I have now managed to find the time to try it out, alas, it's not the other app 
either that creates the "Funk" sound.

Could it be that no app at all has the keyboard focus?

And how can I make sure that my app really has the focus?



Best regards, Gabriel


> 
> 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?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

Reply via email to