开发者

NSSound -(id)soundName:(NSString *)name;

开发者 https://www.devze.com 2023-03-04 12:26 出处:网络
Does [NSSound soundNamed:@\"RandomName开发者_StackOverflow\"]; cache sounds like [NSImage imagenNamed:@\"randomName\"]; does? It doesn\'t mention it in the class reference \"The soundNamed: method che

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

0

精彩评论

暂无评论...
验证码 换一张
取 消