Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Will this work for Cocoa apps?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Will this work for Cocoa apps?
Authored by: hysterion on Oct 08, '02 01:39:11AM
Well, more precisely, LaunchCFMApp is how OS X launches CFM executables -- as opposed to Mach-O executables. Most (all?) Cocoa apps are Mach-O, but Carbon ones can be either. E.g.:
[localhost:Internet Explorer.app/Contents/MacOS] fz% file Internet Explorer
Internet Explorer: CFM binary

[localhost:Finder.app/Contents/MacOS] fz% file Finder
Finder: Mach-O executable ppc

The present trick is only needed for CFM apps; for Mach-O apps you can just call the executable directly. So you'd do
% sudo -b /path/to/LaunchCFMApp '/Applications/Internet Explorer.app/Contents/MacOS/Internet Explorer'
but simply,
% sudo -b /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
As to AuthorizationTrampoline, I dunno...

[ Reply to This | # ]