• 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
Re: Open System Preferences?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open System Preferences?


  • Subject: Re: Open System Preferences?
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 16 Apr 2006 19:17:22 +0200

Am 16.04.2006 um 18:37 schrieb Ondra Cada:
Using Launch Services directly will definitely be more efficient.

Many times.

Though, in some applications this may not be important, whilst the implementation and maintenance costs might. In this very case (all the names fixed, no accents or spaces) I would even consider using the -- in general very rightly avoided -- "system" call.

I could understand if someone did this if there was no API available. But LSOpenURL() is a perfectly functioning API, available at least back to 10.2, and not only efficient, but you don't even have to convert Cocoa types since they're toll-free bridged. No special characters to be afraid of, no additional process to launch that could fail...


What am I missing? Why *wouldn't* you want to use Launch Services in this instance?

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Open System Preferences?
      • From: Ondra Cada <email@hidden>
References: 
 >Open System Preferences? (From: d2kagw <email@hidden>)
 >Re: Open System Preferences? (From: Andrei Tchijov <email@hidden>)
 >Re: Open System Preferences? (From: Uli Kusterer <email@hidden>)
 >Re: Open System Preferences? (From: d2kagw <email@hidden>)
 >Re: Open System Preferences? (From: Uli Kusterer <email@hidden>)
 >Re: Open System Preferences? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Open System Preferences?
  • Next by Date: Re: Ideas to implement a view displaying a graph
  • Previous by thread: Re: Open System Preferences?
  • Next by thread: Re: Open System Preferences?
  • Index(es):
    • Date
    • Thread