• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Running different binaries based on OS version.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running different binaries based on OS version.


  • Subject: Re: Running different binaries based on OS version.
  • From: Hasan Diwan <email@hidden>
  • Date: Mon, 29 Jul 2002 17:20:55 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charles:
You could write a shell script to select them, eg:
#!/bin/sh
VERSION=`uname -r`
if `echo $VERSION | grep 5.5 - | true`
then
/usr/bin/open -a foo-10.1
elif `echo $VERSION | grep 1.0 - | true`
then
/usr/bin/open -a foo-10.0
fi
... and so on, but there must be an easier way.
On Monday, July 29, 2002, at 03:33 PM, Charles Jolley wrote:
Does anyone know if there is a way to have my application launch a different binary under...let's say Mac OS X 10.0 and 10.1 (or 10.2, but we can't talk about that. ;-). I thought about writing a booter app that would select the appropriate binary and launch it, but I was curious if there was any facility in the OS I could use instead.
Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA 4225 F166 40C2 BE42 DCA6
http://hasandiwan.net/~hdiwan/gpg.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9RbG+8WZAwr5C3KYRAhvxAJ4t3P/Erm6Ko7EidXyqHexDAEFFZQCcCuGh
r3eO7VpmZ9ZaVz4irUZr2/g=
=dxwP
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Running different binaries based on OS version. (From: Charles Jolley <email@hidden>)

  • Prev by Date: NSTextField and Drag'n'Drop destination
  • Next by Date: Re: Carrots Vs. Sticks in Copy Protection
  • Previous by thread: Running different binaries based on OS version.
  • Next by thread: How do I convert NSAttributedStrings to NSStrings?
  • Index(es):
    • Date
    • Thread