How to bind OS-X UI to display the App Bundle "CFShortVersionString" value?
How to bind OS-X UI to display the App Bundle "CFShortVersionString" value?
- Subject: How to bind OS-X UI to display the App Bundle "CFShortVersionString" value?
- From: Motti Shneor <email@hidden>
- Date: Sun, 21 Feb 2016 22:30:34 +0200
Hello, and excuse this novice question. I really googled around, and even re-briefed Cocoa Binding docs and so on - but something eludes here -
I want something very simple, yet all the methods I can think of are quite cumbersome and indirect.
I simply want an NSTextField (Label) in one of my windows, to display the “short version string” which is in the App Bundle’s info-plist, at the “CFShortVersionString”. I hoped to do this via binding in my .xib - directly against the Application object, or any other always-available controller.
Now this is NOT in the userDefaults, so I can’t bind to NSUserDefaultsController. This is also not in the NSAppliction or its delegate. I only know to retrieve this value using the NSBundle API -
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName”]
but that’s hardly bind-able, and NSBundle isn’t a controller per se.
I must be missing something very simple and stupid.
Hint anyone?
Motti Shneor.
_______________________________________________
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