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: GaelicWizard on Oct 07, '02 06:51:57PM

LaunchCFMApp is how OSX launches carbon apps, right? (I may be wrong) If so, then will this work for cocoa apps too? I use Pseudo myself, but it gets tedious when I have to actually find the app to drop on it. I would much prefer making an easy script (.command) that would go directly to my app as root.

on a slightly differant topic: What about AuthorizationTrampoline? is this only useable when writen into a program? or can we just use that so that the prefs are still stored in my home folder??
Thanx in advance



[ Reply to This | # ]
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 | # ]