Re: Mixing Cocoa and Carbon
Re: Mixing Cocoa and Carbon
- Subject: Re: Mixing Cocoa and Carbon
- From: Ricky Sharp <email@hidden>
- Date: Wed, 15 Mar 2006 11:14:55 -0600
On Wednesday, March 15, 2006, at 08:51AM, Daniel Jalkut <email@hidden> wrote:
>
>On Mar 13, 2006, at 6:50 PM, Rick Langschultz wrote:
>> I was wondering if my application can run in cocoa on Mac OS X
>> 10.4.-- and in Carbon on macs that don't support universal
>> binaries. I have an application written in Carbon from a few years
>> ago. I added some stuff to it, as well as ported it to Cocoa. Would
>> I have to create a wrapper program that decides what version to
>> run. Some of the code used in the cocoa version is specific to
>> intel only hardware (i.e. some ASM code)
>
>This is an interesting question. Yeah - probably a wrapper would be
>most appropriate. But if you could arrange it so that both binaries
>are happy with the same bundled resources folder, then you could
>conceivably use "lipo" to build a Universal binary with extremely
>mismatched "forks." I don't see why you can't have two completely
>distinct executables merged together into a single universal.
First, this discussion really should be taken to a different forum. But for some quick notes...
It may be possible to have two binaries such that the Universal one is in "MacOS" and the Carbon one in "MacOSClassic". Not sure what launch services will do with that though with various permutations of OS and hardware.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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