Nicolò Blunda 3 Posted August 7, 2022 (edited) Hello. With this code (working on macOS) I get application version info: VersionInfoString:= (TNSString.Wrap(CFBundleGetValueForInfoDictionaryKey(CFBundleGetMainBundle, kCFBundleVersionKey))).UTF8String; I want to retreive the copyright info too. In info.plist the copyright string is the NSHumanReadableCopyright key value. It is possible to adapt code above to get it? Edited August 7, 2022 by Nicolò Blunda Share this post Link to post
Dave Nottage 559 Posted August 7, 2022 1 hour ago, Nicolò Blunda said: It is possible to adapt code above to get it? It seems it is not included by default in macOS apps produced by Delphi. When it is included, you could use the following code: Value := NSStrToStr(TNSString.Wrap(CFBundleGetValueForInfoDictionaryKey(CFBundleGetMainBundle, StringToID('NSHumanReadableCopyright')))); Share this post Link to post