Working with .pkg (Mac OS X package) files with Objective-C & Cocoa Framework
Can I do something with 'package' (.pkg files) right from my Cocoa application's code? For example - create new one or read / write files into existing package?
By the way, any standard command line programs also could开发者_C百科 help.
Thank you.
I don't think there's an API for working with installer packages.
You could run the installer
command-line tool using NSTask
and parse the output. Have a look at the man page for the options it takes.
精彩评论