Re: AddInstanceForFactory: No factory registered for id

2020-08-19 Thread Jens Alfke via Cocoa-dev
> On Aug 19, 2020, at 8:27 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I would just like for the (error?) message in the log file to go away. Don't worry about it. There are plenty of Apple subsystems that log warnings in normal operation. It would be nice if it didn't happen, but it's n

Re: AddInstanceForFactory: No factory registered for id

2020-08-19 Thread Gabriel Zachmann via Cocoa-dev
>> On Aug 18, 2020, at 10:33 AM, Gabriel Zachmann via Cocoa-dev >> mailto:cocoa-dev@lists.apple.com>> wrote: >> >> (I have already experimented with AudioServicesCreateSystemSoundID(), but >> failed.) > > In my experience, playing sounds (in macOS apps) only works when using mp3 > files. I am

Re: AddInstanceForFactory: No factory registered for id

2020-08-18 Thread Jens Alfke via Cocoa-dev
> On Aug 18, 2020, at 3:18 PM, Carl Hoefs > wrote: > > Run a test using the system .aif sound files: they won't work. > Convert them to .mp3 files: they do work. > That's what I mean by "in my experience". If NSSound won't play the system sound files, something is really messed up. Can you

Re: AddInstanceForFactory: No factory registered for id

2020-08-18 Thread Carl Hoefs via Cocoa-dev
Run a test using the system .aif sound files: they won't work. Convert them to .mp3 files: they do work. That's what I mean by "in my experience". Mark > On Aug 18, 2020, at 1:56 PM, Jens Alfke wrote: > > > >> On Aug 18, 2020, at 11:10 AM, Carl Hoefs via Cocoa-dev >> mailto:cocoa-dev@lists

Re: AddInstanceForFactory: No factory registered for id

2020-08-18 Thread Jens Alfke via Cocoa-dev
> On Aug 18, 2020, at 11:10 AM, Carl Hoefs via Cocoa-dev > wrote: > > In my experience, playing sounds (in macOS apps) only works when using mp3 > files. I disagree. NSSound supports all the formats CoreAudio does, and normally for brief sounds people use AIFF. I can't imagine any feature

Re: AddInstanceForFactory: No factory registered for id

2020-08-18 Thread Carl Hoefs via Cocoa-dev
> On Aug 18, 2020, at 10:33 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > (I have already experimented with AudioServicesCreateSystemSoundID(), but > failed.) In my experience, playing sounds (in macOS apps) only works when using mp3 files. -Carl

AddInstanceForFactory: No factory registered for id

2020-08-18 Thread Gabriel Zachmann via Cocoa-dev
I am seeing this message in the log/console: ArtSaverApp[8638:9659238] [plugin] AddInstanceForFactory: No factory registered for id F8BB1C28-BAE8-11D6-9C31-00039315CD46 I think it is caused by my app playing a system sound. The code I use to do so is: const NSString * trash_sound_file