• 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 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
  • 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>)

  • Prev by Date: Re: Empty NSStrings, nil NSStrings
  • Next by Date: Adding simple AppleScript commands to a Cocoa application
  • Previous by thread: Re: Open System Preferences?
  • Next by thread: Re: Open System Preferences?
  • Index(es):
    • Date
    • Thread