Naming convention for CFBundleSignature and CFBundleIdentifier

Mike2012 picture Mike2012 · Dec 9, 2009 · Viewed 26.1k times · Source

I am wondering how do I know what name I should give for my CFBundleSignature and CFBundleIdentifier. I believe these are supposed to be unique identifier so do I have to somehow get these names from apple? Say my app is called javaapp and comes from the website javaapp. Should my CFBundleIdentifier be com.javaapp.javaapp? What 4 letters should I use for my CFBundleSignature?

Answer

Darren picture Darren · Dec 14, 2009

The Bundle Identifier uniquely identifies your application. If you have registered a domain name, use that. Otherwise, just use com.<your name>.<application name>

The Bundle Signature is analogous to the "Creator Code" found in Classic Mac OS. It exists only for compatibility with Classic Mac OS apps and documents. Modern Mac OS X apps don't need to worry about assigning a Bundle Signature.