How to disable alert sounds for an application

Is there a way to disable alert sounds for my application? I mixed SFML and created a bundle with a window with no close button(this is a registration window that appears before the game) and everytime i press ESCAPE in my game there's an alert sound that comes up. How can i disable alert sounds or alter their volume? I am using cocoa.

Well, it did not help. After some more investigation i discovered it is something with SFML. I created a simple Cocoa application from the template and then pasted in main.mm the opengl sample code, from SFML. I modified it a little bit so that the application will not close when pressing escape. Now the app runs and everytime i press escape an alert sound plays. I did post on the SFML forums but no luck till now. I'm wondering what should i do..

AdrianM Wrote:Well, it did not help. After some more investigation i discovered it is something with SFML. I created a simple Cocoa application from the template and then pasted in main.mm the opengl sample code, from SFML. I modified it a little bit so that the application will not close when pressing escape. Now the app runs and everytime i press escape an alert sound plays. I did post on the SFML forums but no luck till now. I'm wondering what should i do..

The issue was due to SFML, after talking to the admin there, i downloaded the latest sources for SFML from the SVN, the unwanted alert went away.