Re: Replacing Info.plist programmatically
Re: Replacing Info.plist programmatically
- Subject: Re: Replacing Info.plist programmatically
- From: John Stiles <email@hidden>
- Date: Wed, 22 Nov 2006 13:45:20 -0800
On Nov 22, 2006, at 12:29 PM, Claudio Procida wrote:
There's really no reason to change your Info.plist. This research
will not help you.
If you want to control whether you're in the dock or not at
startup, see my previous email re TransformProcessType. Hacking
your Info.plist to do this is much more difficult.
If you want to convert from a docked app to an undocked app after
you've started up, sorry—there's no way to do this in OS X. You'll
have to ask the user to relaunch the app.
Restarting the app was already taken into account.
The risk of breaking Leopard's code signing troubles me, so I'll
follow your directions.
That isn't your only concern. If the user isn't running as an admin,
it is likely that they won't be able to modify the app bundle's
contents at all :|
Also, in a multi-user environment, you may have two different users
and each one could have a different preference about whether it
should show in the dock or not.
So I always have to start the app as a LSUIElement and, if the
"show dock icon" preference is set to yes, transform the process
type as a foreground app. Right?
Right. That will do it. _______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden