Re: Cocoa | Reading Plist/file version of Native binary
Re: Cocoa | Reading Plist/file version of Native binary
- Subject: Re: Cocoa | Reading Plist/file version of Native binary
- From: "email@hidden" <email@hidden>
- Date: Tue, 27 Nov 2012 16:52:04 +0000
On 27 Nov 2012, at 15:42, Kyle Sluder <email@hidden> wrote:
> On Mon, Nov 26, 2012, at 10:59 PM, Sachin Porwal wrote:
>> Hi Stephen,
>>
>> Thanks for your help.
>>
>> No, the tool is not an App/Bundle, it is native command line Tool
>> which embeds the File version Plist in itself. I am trying to find a
>> generic way to read version information from such binaries (32/64 bit)
>> if they have file version plist embeded with them.
>
> From the documentation for CFBundleCopyInfoDictionaryForURL:
>
> "For a plain file URL representing an unbundled application, this
> function will attempt to read an information dictionary either from the
> (__TEXT, __info_plist) section of the file (for a Mach-O file) or from a
> plst resource."
>
> So use that.
I am not sure from the OP whether the tool is actually part of a bundle or not.
Regards
Jonathan Mitchell
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden