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