Re: Open System Preferences?
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