Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / September 2006



Tip: Looking for answers? Try searching our database.

LaunchApplication on application packages?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RogueWarrior - 28 Sep 2006 04:00 GMT
Can you call LaunchApplication on shiny new Mach-O application
packages?
Or do I have to use LSOpenFSRef to do this?

While we're on the subject of application packages, can you call
PBGetCatInfoSync on them?  I know this call is deprecated.  I've got a
rather large body of code based around FSSpec and I'm not crazy about
the idea of having to rewrite all of that for FSRefs
RogueWarrior - 28 Sep 2006 16:27 GMT
Some more data on this subject.  Turns out that I can call
PBGetCatInfoSync on a package as long as I append ".app" to the end of
the file name.  Same thing with LaunchApplication but there's something
screwy there.  I'm not 100% sure but it's looking like the PPC version
of a universal binary is being launched not the x86 (which is what I'm
running on) and that code starts to run and then shuts down right away.
James W. Walker - 29 Sep 2006 07:44 GMT
> Some more data on this subject.  Turns out that I can call
> PBGetCatInfoSync on a package as long as I append ".app" to the end of
> the file name.  Same thing with LaunchApplication but there's something
> screwy there.  I'm not 100% sure but it's looking like the PPC version
> of a universal binary is being launched not the x86 (which is what I'm
> running on) and that code starts to run and then shuts down right away.

LaunchApplication is a pretty old API (as is PBGetCatInfoSync).  Look
into Launch Services.
RogueWarrior - 29 Sep 2006 16:29 GMT
> LaunchApplication is a pretty old API (as is PBGetCatInfoSync).  Look
> into Launch Services.

Launch Services works just fine as long as you have an FSRef.
Fortunately there's a routine to make one from an FSSpec.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.