Re: programmatically inserted dock items not showing up
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