Re: Open System Preferences?
Re: Open System Preferences?
- Subject: Re: Open System Preferences?
- From: Ondra Cada <email@hidden>
- Date: Sun, 16 Apr 2006 18:37:59 +0200
Uli,
On 16.4.2006, at 15:08, Uli Kusterer wrote:
Im pretty keen on using NSTask cause it seems [ besides Andrei's
example, cause thats using stuff i've never seen before ] to be
the fastest solution both to run and to maintain...
do you think I would be wrong in saying that?
Yes. In this context, NSTask is an Objective C API that is used to
run a command-line tool ("open") that will then call upon launch
services to actually launch the prefPane with system preferences.
So you're spawning a second application to launch a third.
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.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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