Re: Open System Preferences?
Re: Open System Preferences?
- Subject: Re: Open System Preferences?
- From: Uli Kusterer <email@hidden>
- Date: Sun, 16 Apr 2006 15:08:46 +0200
Am 16.04.2006 um 12:05 schrieb d2kagw:
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.
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