Hi.
Im trying to get the version of my preferencepane that i built in swift. But all i can get is the systempreferences app version, thats not very helpful in knowing what pane version is being used.
Im guessing there is a key for the actual pane bundleverion i can use, but i cannot find it with my googlefo.
Any suggestions?
I tried this so far:
Im trying to get the version of my preferencepane that i built in swift. But all i can get is the systempreferences app version, thats not very helpful in knowing what pane version is being used.
Im guessing there is a key for the actual pane bundleverion i can use, but i cannot find it with my googlefo.
Any suggestions?
I tried this so far:
Code Block textPaneVersion.stringValue = Bundle.main.object(forInfoDictionaryKey: kCFBundleVersionKey as String) as! String textPaneVersion.stringValue = Bundle.main.infoDictionary?["CFBundleVersion"] as! String textPaneVersion.stringValue = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String