Re: Updating application info plist
Re: Updating application info plist
- Subject: Re: Updating application info plist
- From: Kyle Sluder <email@hidden>
- Date: Fri, 9 Oct 2009 16:19:48 -0700
On Fri, Oct 9, 2009 at 4:05 PM, Rob Keniger <email@hidden> wrote:
> To do this, surely they must be rewriting the LSUIElement key in the app's own Info.plist while the app is running, right? Or is there another way to do this?
I don't know how LittleSnapper is implemented, but you can use
TransformProcessType to bring yourself from LSUIElement-ness into
Dock-icon-having, full blown app status. I imagine LittleSnapper
checks user defaults at launch and calls this function if
necessary—this would be the only way to implement this feature for
non-admin users who can't write to the app bundle.
http://developer.apple.com/mac/library/documentation/Carbon/Reference/Process_Manager/Reference/reference.html#//apple_ref/c/func/TransformProcessType
(Also, don't forget about code signing.)
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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