On Dec 19, 2014, at 11:12 PM, Donald Hall <d...@appsandmore.com> wrote:

> I want to play a sound indicating that the user has tried to type a 
> non-allowed character (e.g. a letter where a number is needed) in conjunction 
> with "textField:textField shouldChangeCharactersInRange:replacementString:” I 
> was thinking of “tink.caf” or “tock.caf”


#import <AVFoundation/AVAudioPlayer.h>
#import <AssetsLibrary/AssetsLibrary.h>

AudioServicesPlaySystemSound(1057);

-Carl


_______________________________________________

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