site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com On Sep 30, 2005, at 2:04 PM, Christopher Hickman wrote: Topher -----Original Message----- From: Pontus Ilbring [mailto:pontus.ilbring@gmail.com] Sent: Friday, September 30, 2005 1:57 PM To: Christopher Hickman Cc: cocoa-dev@lists.apple.com Subject: Re: API for Modifying Dock Contents On 9/30/05, Christopher Hickman <tophu@mac.com> wrote: deal with additions, deletions, etc. Why? Users are usually capable of arranging their dock on their own. Are you thinking of doing something like Windows installers which offer to add the installed program in the Start bar? This email sent to dev@silentalcove.net _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... Well, a clunky way would be to have your app manage various copies of the doc's plist file. You could swap in the one matching the configuration you want, then kill the doc (and let it relaunch, reading the alternate plist). I have no idea if it is actually that simple, but it's one (god- awful brute-force) way ... No, of course not. That would be unconscionable. I want to be able to change my Dock contents programmatically so that I may have different "modes" for it. I want to have a normal mode and a coding mode, for example. In normal mode, the iLife apps are in my dock, along with some games, etc. In coding mode, Xcode, IB, Plist Editor, SubEthaEdit, etc. appear in the Dock. At first, I figured that I would write a script or Cocoa tool app that made the changes and put itself in the Dock to toggle back. However, since it looked like there's nothing out there, I figured I'd go ahead and make and publish some Automator actions that add, delete, and move Dock items, then build a workflow to do what I want. That way, anybody else who wants to automate Dock modifications for themselves may use those actions. It seems like there should be an API for telling the Dock to gracefully _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/dev% 40silentalcove.net This email sent to site_archiver@lists.apple.com
participants (1)
-
SA Dev