Re: AddInstanceForFactory: No factory registered for id
> 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 not your fault. About all you can do is file a bug report. —Jens ___ 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
Re: AddInstanceForFactory: No factory registered for id
>> 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 happy using NSSound, which does play the aiff file. I would just like for the (error?) message in the log file to go away. Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ 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
Re: AddInstanceForFactory: No factory registered for id
> 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 show real source code? —Jens ___ 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
Re: AddInstanceForFactory: No factory registered for id
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.apple.com>> 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 supporting _only_ MP3; it's an archaic format. > Apple doesn't even provide an MP3 encoder in the OS, for complicated legal > reasons. (Yes, iTunes/Music can encode MP3s, but that's because there's en > encoder in the app, not accessible to other software.) > > —Jens ___ 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
Re: AddInstanceForFactory: No factory registered for id
> 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 supporting _only_ MP3; it's an archaic format. Apple doesn't even provide an MP3 encoder in the OS, for complicated legal reasons. (Yes, iTunes/Music can encode MP3s, but that's because there's en encoder in the app, not accessible to other software.) —Jens ___ 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
Re: AddInstanceForFactory: No factory registered for id
> 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 ___ 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
AddInstanceForFactory: No factory registered for id
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 = @"/System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/dock/drag to trash.aif"; NSSound * systemSound = [[NSSound alloc] initWithContentsOfFile: (NSString*)trash_sound_file byReference: YES]; if ( systemSound ) [systemSound play]; In another place, I use this code, and it, too, creates the funny log message: NSSound * failed_sound = [NSSound soundNamed: @"Funk"]; if ( failed_sound ) [failed_sound play]; The funny log message does not make the app crash, nor does it seem to have any negative effect. So I am wondering: should I worry about it? Is it an error message? If so, how could I prevent it? (I have already experimented with AudioServicesCreateSystemSoundID(), but failed.) Thanks a lot in advance for any and all insights. Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ 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