1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Editing Info.plist

Discussion in 'Mac Programming' started by ruhi, Jul 22, 2009.

  1. macrumors member

    How can i edit info.plist file present in my cocoa application at runtime.

    i want to set LSUIElement key to True or YES at run time.

    What can i do to accomplish this.

    Thanks in advance.
  2. Moderator


    Staff Member

    You really shouldn't. You app might be launching from a read-only location (especially for the current user). Also altering that will break the code signature if you sign your app.
  3. macrumors member

    editing info.plist

    i really need to change info.plist at run time.

    is there anyway by which i can do it efficiently.

    i just need to set value of a single key LSUIElement. Either true or false.

    cant it be done by any means?

    Please Reply!!!

    Ruhi. :confused:
  4. macrumors 601


    defaults write com.your_app.signature LSUIElement 0

    is the command, but I don't know how to achieve this as I don't program in cocoa...yet.

    I think....
  5. macrumors member

    editing info.plist

    Thanks for your quick response. i will see to it.

    But i am still looking for some cocoa help.

    Thanks again

Share This Page