[solved] Add key to Info.plist via Projucer


#1

Hi everybody,
I want to hide my application from the dock (because it has already a SystemTrayIconComponent). That works, if I amend this key to the Info.plist:

	<key>LSUIElement</key>
	<true/>

So to make the Projucer write that key, I need to put that into the jucer file, but I didn’t find it documented anywhere. Does anybody know how to do that?
Only related sounding field: PList Preprocessor Definitions, but no clue…

Or will the Projucer needed to be extended with a select box “hide App from Dock” (and if applicable the same for windows, will need to figure that next)…

Cheers,
Daniel


#2

What you want to do is doable by using the Custom PList field. You can have a look at Projucer.jucer for an example.


#3

And since a picture is better than thousand words:


Status Bar iOS (Color and Size)
#4

Great, thanks @McMartin!
The image helped, since I thought first, it would be sufficient to add the XML key and value, but that wouldn’t work.
But complete with plist and dict tag, it works like a charm!

Thanks again!