Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ruhi

macrumors member
Original poster
Jun 17, 2009
70
0
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
 
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.
 
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:
 
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....
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.