• 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
possible to programmatically hide dock icon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

possible to programmatically hide dock icon?


  • Subject: possible to programmatically hide dock icon?
  • From: Nathan Lamont <email@hidden>
  • Date: Fri, 17 May 2002 14:59:52 -0400

I understand that it's possible to hide the dock icon with the NSUIElement key in an application's info.plist dictionary, and that an application's icon in the dock can be manipulated with [NSApplication setApplicationIconImage].

I would like to have a user-controllable option for hiding my application's icon in the dock. I can do this by changing the NSUIElement object in the application's info.plist at runtime, so the change takes effect next launch, but I'd like to be able to:

- have the change take effect immediately without quitting and launching the application
- still have a menu bar for my application, whether or not it has a dock icon

I tried without success calling setApplicationIconImage with nil. Is what I want possible?

< Nathan Lamont / www.biggerplanet.com >
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Changing the Text Color of an NSMenuItem in an NSPopUpButton?
  • Next by Date: Re: Cocoa Logo
  • Previous by thread: Re: Cocoa Logo
  • Next by thread: NSTextField overwrites itself
  • Index(es):
    • Date
    • Thread