Re: How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard?
Re: How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard?
- Subject: Re: How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard?
- From: Oleg Krupnov <email@hidden>
- Date: Thu, 8 Apr 2010 08:59:02 -0700
No, I'm just double-clicking it in Finder.
On Thu, Apr 8, 2010 at 8:57 AM, Kevin Wojniak <email@hidden> wrote:
> Are you launching with NSTask or some other variant? If so it won't work. You need to use Launch Services instead. I think there are some low-level APIs to use to launch with a specific architecture, but if you can use LS it handles all the dirty work for you.
>
>
> On Apr 8, 2010, at 8:53 AM, Oleg Krupnov wrote:
>
>> This would be a perfect solution, but I've found that on Leopard, this
>> key seems to be ignored, the system still launches my app in 64-bit
>> mode (via Finder).
>>
>> What may I be doing wrong?
>>
>> Thanks!
>>
>> On Thu, Apr 8, 2010 at 7:28 AM, Kevin Wojniak <email@hidden> wrote:
>>> In your Info.plist add:
>>>
>>> <key>LSMinimumSystemVersionByArchitecture</key>
>>> <dict>
>>> <key>x86_64</key>
>>> <string>10.6.0</string>
>>> </dict>
>>>
>>>
>>> Kevin
>>>
>>>
>>> On Apr 8, 2010, at 7:21 AM, Oleg Krupnov wrote:
>>>
>>>> Hi,
>>>>
>>>> While it's good for my app to run in 64-bit mode on Snow Leopard, it
>>>> turns out not desirable on Leopard, because of the delay of loading
>>>> all 64-bit frameworks (in case if my app is the first 64-bit app
>>>> launched after system boot). It literally makes me wait for about ten
>>>> seconds, and the performance gain of my app in 64-bit mode is
>>>> definitely not worth it on Leopard.
>>>>
>>>> My app is assembled as a universal binary that supports 3
>>>> architectures: 32-bit intel, 32-bit ppc and 64-bit intel. Obviously,
>>>> the system chooses the best architecture it can run, which is 64-bit
>>>> intel in case of Leopard.
>>>>
>>>> Is there a way to change that and force my app to run in 32 bit mode on Leopard?
>>>>
>>>> I would hate to have to supply two versions, one for Leopard and
>>>> another one for Snow Leopard.
>>>>
>>>> Thanks!
>>>> _______________________________________________
>>>>
>>>> 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
>>>
>>>
>
>
_______________________________________________
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