• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to bind OS-X UI to display the App Bundle "CFShortVersionString" value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to bind OS-X UI to display the App Bundle "CFShortVersionString" value?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: calendar & repeating events api
  • Next by Date: Re: How to bind OS-X UI to display the App Bundle "CFShortVersionString" value?
  • Previous by thread: Remote files
  • Next by thread: Re: How to bind OS-X UI to display the App Bundle "CFShortVersionString" value?
  • Index(es):
    • Date
    • Thread