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

    #1
    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.
    Ruhi
     
  2. Moderator

    robbieduncan

    Staff Member

    #2
    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

    #3
    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!!!

    Thanks,
    Ruhi. :confused:
     
  4. macrumors 601

    sammich

    #4
    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

    #5
    editing info.plist

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

    But i am still looking for some cocoa help.

    Thanks again
    Ruhi.
     

Share This Page