• 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: programmatically inserted dock items not showing up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programmatically inserted dock items not showing up


  • Subject: Re: programmatically inserted dock items not showing up
  • From: Chris Parker <email@hidden>
  • Date: Mon, 18 Jul 2005 19:15:20 -0700


On Jul 18, 2005, at 6:52 PM, Chase wrote:

I'm using NSUserDefaults to add a dock item (on the app side) programmatically.

It works beautifully, except I have to log out and back in again to see it in the Dock.

How can I get Dock.app to realize there's a new item to display on- the-fly?

I thought that's what synchronize was for.

I tried the Cocoa and CoreFoundation varieties. Neither results in the icon showing up.

Any ideas?

-[NSUserDefaults synchronize] and CFPreferences{App}Synchronize() don't force everyone else to sync up with the changes - they cause your process to sync up with any changes that may have been made behind its back.


There is at present no way to add an icon to the Dock and have it appear without killing the Dock and letting it autorestart.

Please don't do this - there is an enhancement request for specific API to have this work.

.chris

--
Chris Parker
Cocoa Frameworks
Apple Computer, Inc.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: programmatically inserted dock items not showing up
      • From: Chase <email@hidden>
References: 
 >programmatically inserted dock items not showing up (From: Chase <email@hidden>)

  • Prev by Date: Re: tooltip event/notification?
  • Next by Date: Re: tooltip event/notification?
  • Previous by thread: programmatically inserted dock items not showing up
  • Next by thread: Re: programmatically inserted dock items not showing up
  • Index(es):
    • Date
    • Thread