Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading data (embedded plist) linked to executable through -sectcreate __TEXT

Tags:

I am linking a executable with a plist using -sectcreate __TEXT linker flags. Reason for this is mainly to use the SMJobBless() method. But I need to read plist linked from another application. This is only because I need to install the same privileged application on a 10.5 system and I can’t use SMJobBless() on 10.5.

How do I read this linked plist using Objective-C so I can copy it to /Library/LaunchDaemons/ myself?