Re: open package installer in bundle resources directory not working
Re: open package installer in bundle resources directory not working
- Subject: Re: open package installer in bundle resources directory not working
- From: "Michael Ash" <email@hidden>
- Date: Sun, 14 Dec 2008 14:03:29 -0500
On Sat, Dec 13, 2008 at 5:28 PM, Iceberg-Dev <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden