• 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
Error -10827 from Launch Services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error -10827 from Launch Services


  • Subject: Error -10827 from Launch Services
  • From: Rob Minnis <email@hidden>
  • Date: Mon, 12 Jan 2004 10:24:18 -0600

Does anyone know what error -10827 means? I'm trying to launch an
application but, after getting the URL, Launch Services always (or,
almost always) returns this error code.

After receiving this error, I cannot launch the application at all:
even from the Finder. The Finder complains that the app may be damaged
or incomplete but, as far as I can tell, the only differences between
the trashed copy and a fresh copy is the .DS_Store files.

TIA,

Rob Minnis
email@hidden


====================

For testing, this code is called immediately upon application launch
(i.e. main()). In the few cases where it does work, the code is called
after the application is completely launched (NSApplication has
performed it's voodoo) but it can only be called once (after the first
time, the GetBundle() call fails.

CFBundleRef mainBundle =
CFBundleGetBundleWithIdentifier(CFSTR("us.minnis.BugReporter"));

if(mainBundle != NULL)
{
CFURLRef bundleURL = CFBundleCopyResourceURL(mainBundle, CFSTR("Bug
Reporter.app"), NULL, NULL);
if(bundleURL != NULL)
{
LSLaunchURLSpec spec = {bundleURL, NULL, NULL,
kLSLaunchDontAddToRecents, NULL};
OSStatus status = LSOpenFromURLSpec(&spec, NULL);
if(status == noErr) return;
}
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Error -10827 from Launch Services
      • From: Rob Minnis <email@hidden>
    • Re: Error -10827 from Launch Services
      • From: Frank Midgley <email@hidden>
  • Prev by Date: NSTimer and user interface events
  • Next by Date: Re: NSTimer and user interface events
  • Previous by thread: Re: NSTimer and user interface events
  • Next by thread: Re: Error -10827 from Launch Services
  • Index(es):
    • Date
    • Thread