• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AddInstanceForFactory: No factory registered for id
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AddInstanceForFactory: No factory registered for id


  • Subject: AddInstanceForFactory: No factory registered for id
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Tue, 18 Aug 2020 19:33:28 +0200

I am seeing this message in the log/console:

ArtSaverApp[8638:9659238] [plugin] AddInstanceForFactory: No factory registered
for id <CFUUID 0x6000002bd780> 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AddInstanceForFactory: No factory registered for id
      • From: Carl Hoefs via Cocoa-dev <email@hidden>
  • Prev by Date: UITableViewHeaderFooter frames?
  • Next by Date: Re: AddInstanceForFactory: No factory registered for id
  • Previous by thread: UITableViewHeaderFooter frames?
  • Next by thread: Re: AddInstanceForFactory: No factory registered for id
  • Index(es):
    • Date
    • Thread