On Sat, Dec 13, 2008 at 5:28 PM, Iceberg-Dev <dev.iceb...@gmail.com> wrote:
>
> On Dec 13, 2008, at 12:46 PM, Kyle Sluder wrote:
>
>> 3) Why all this trouble of launching executables?  There's a reason
>> Launch Services is a public framework; use that.  Don't use
>> -[NSWorkspace openFile:], because that's not guaranteed to open the
>> package in Installer.app.  Instead, use LSOpenURLsWithRole:
>>
>> http://developer.apple.com/DOCUMENTATION/Carbon/Reference/LaunchServicesReference/Reference/reference.html#//apple_ref/doc/uid/TP30000998-CH1g-TPXREF104
>
> Just in case:
>
> I've been using NSWorkspace exactly for this for more than 6 years now.
>
> Still waiting for a report from a user stating it does not open
> Installer.app but another application...

Although it's only about ten more seconds of typing to use
-openFile:withApplication: instead and simply avoid the possibility
altogether.

Mike
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to