Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Hack the Dock

I want to require a command key to be able to drag something from the dock.

This is not a current feature of the Dock Application.

How can I hack the app to add that functionality?

24" iMac, Mac OS X (10.5.5)

Posted on Mar 4, 2009 10:54 AM

Reply
7 replies

Mar 4, 2009 1:42 PM in response to thomas_r.

I have some programming experience and wanted to get pointed to the right files to edit.

Problem:
I use a tablet as my main input device to use my computer rather than a mouse.
Using a tablet means it is much easier to accidentally drag (remove) an icon from the dock when just trying to click on it as if you slightly slide the tip of the pen when taping (clicking) it can be enough to remove the icon. This means when this happens I have to find the app and drag it's icon back to the dock.

I have submitted requests to Apple for 7 years to add a Dock preference that allows the user to set a modifier key for removing an application from the dock. I am tired of requesting and just want to fix it myself.

I understand that I would have to replace my modified Dock app files with originals before I run any updates and then re-implement the hack which is fine.

If this is not the appropriate forum for something this un GUI related can you please point me to a forum which is more OS X code editing related?

Mar 5, 2009 3:38 AM in response to Light Speed

This is going to be much more complex than just editing a file somewhere. I've been a hobbyist Mac developer for almost 25 years, and I wouldn't have a clue how to get started with this. It's going to take some work.

If you're up for it, go to the Apple Developer Connection site and set up a free account. Unfortunately, there aren't any free forums there that I'm aware of, so you'll have to find another place to ask questions. Too bad there aren't any developer forums here. I've been a bit out of the developer loop for a few years, so I'm afraid I can't point you to current forums/mailing lists.

Alternatively, you could try a different launcher. People bash the Dock all the time, but I like it. Still, I've discovered that I like Quicksilver even more than the Dock. It's free, and it lets you use your keyboard to launch apps. Just press control-space (you can change this if you like) and type a few letters of the app's name. Depending on the app and how often you use it, you may only have to type one or two letters. If you prefer to avoid the keyboard, another launcher might do better for you.

Mar 5, 2009 11:26 AM in response to Light Speed

There is a way to lock the dock. I think [Onyx|http://www.titanium.free.fr/pgs2/english/download.html], free, and [Cocktail|http://www.maintain.se/cocktail/index.php], not free, both allow you to. You can't use a simple command keystroke to do it though, I think it's you have to run them each time you want to unlock it.

Hack the Dock

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.