iosiphonecfbundledisplayname

getting the name of the application


I have a lite and a full version and want them to work with different configuration Files.

Now I need to query, within the application, if the application name has "lite" in it and load the coresponding config-file I havent found how to do it. Any Idea ? Or is there generally a better approach for that ?

Thanks in advance Heiko


Solution

  • Try

    [[NSProcessInfo processInfo] processName]
    

    This returns process name, which is usually your application's name.