Does [NSSound soundNamed:@"RandomName开发者_StackOverflow"]; cache sounds like [NSImage imagenNamed:@"randomName"]; does? It doesn't mention it in the class reference
"The soundNamed: method checks the application’s sound cache for an existing sound resource with the specified name. If the specified resource is not currently in the sound cache, NSSound automatically searches for it in several other locations, including your application’s main bundle and any system Library/Sounds directories."
From the apple docs
精彩评论