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 10:58:14 -0800
On Nov 22, 2006, at 10:53 AM, Stephane wrote:
On Nov 22, 2006, at 7:49 PM, Sherm Pendley wrote:
On Nov 22, 2006, at 1:17 PM, Claudio Procida wrote:
I'm trying to edit the app's Info.plist file programmatically.
[...]
The code snippet is the following:
- (IBAction)changeHideDockIcon:(id)sender
If all you want to do is change the Dock icon for your app at run-
time, why not simply use NSApplication's -setApplicationIconImage:?
Actually, he wants to have the app not showing in the Dock...
The way to do this is to have the Info.plist set to make the app a
LSUIElement. Then, after startup, if you decide you want a GUI after
all, use TransformProcessType (a Carbon call) to convert from a UI
element to a full-fledged Dock-inhabiting app.
(Unfortunately, there is no way to transform from a Docked app to a
UIElement app. This is just a limitation of OS X.)
_______________________________________________
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