• 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: Ondra Cada <email@hidden>
  • Date: Sun, 16 Apr 2006 19:41:05 +0200

Uli,

On 16.4.2006, at 19:17, Uli Kusterer wrote:

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

Two different answers why not for two different occassions, and third one, quite affirmative (with a small "but"):


(i) in those cases where my "system" works excellently (like with my defaults later example): too complex, you can't beat the easiness and simplicity of a plain one-liner. Perhaps if you have your own well- tested framework :) Agreed in a number of cases you rather choose efficiency, but there are cases the implementation simplicity wins.

(ii) wherever (i) does not apply, I would first go NSWorskpace for its flexibility (e.g., one can poseAsClass NSWorkspace; try that with LSOpenURL()!

(iii) only if the (i) would be ridiculously error-prone, and NSWorkspace alas does not suffice -- and I do agree there is a number of such cases! -- I would go Launch Services. Though, myself, I would always encapsulate them cleanly into an NSWorkspace category, keeping at least some of the flexibility of (ii) (just "some" since it would not work system-wide, but in my own application only).
---
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
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>)
 >Re: Open System Preferences? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Empty NSStrings, nil NSStrings
  • Next by Date: Re: Empty NSStrings, nil NSStrings
  • Previous by thread: Re: Open System Preferences?
  • Next by thread: Re: Open System Preferences?
  • Index(es):
    • Date
    • Thread