Modify Info.plist to set "Application is agent(UIElement)" at runtime

Viewed 4380

Let's say I need to give the user the ability to choose by a preferences panel whether to use the app as "standard" (with dock icon and menu) or as an agent app (with status bar menu only).

I think I need to programmatically modify the app's "Info.plist" during execution, changing the parameter "Application is agent" to YES/NO.

Is this the right way?

P.S. You can find this behavior in "Sparrow".

1 Answers
Related