• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Replacing Info.plist programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Replacing Info.plist programmatically (From: Claudio Procida <email@hidden>)
 >Re: Replacing Info.plist programmatically (From: Sherm Pendley <email@hidden>)
 >Re: Replacing Info.plist programmatically (From: Stephane <email@hidden>)

  • Prev by Date: Re: Replacing Info.plist programmatically
  • Next by Date: Re: Replacing Info.plist programmatically
  • Previous by thread: Re: Replacing Info.plist programmatically
  • Next by thread: Re: Replacing Info.plist programmatically
  • Index(es):
    • Date
    • Thread