Re: API for Modifying Dock Contents
Re: API for Modifying Dock Contents
- Subject: Re: API for Modifying Dock Contents
- From: SA Dev <email@hidden>
- Date: Fri, 30 Sep 2005 14:33:12 -0400
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 ...
On Sep 30, 2005, at 2:04 PM, Christopher Hickman wrote:
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.
Topher
-----Original Message-----
From: Pontus Ilbring [mailto:email@hidden]
Sent: Friday, September 30, 2005 1:57 PM
To: Christopher Hickman
Cc: email@hidden
Subject: Re: API for Modifying Dock Contents
On 9/30/05, Christopher Hickman <email@hidden> wrote:
It seems like there should be an API for telling the Dock to
gracefully
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?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
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