Dock icon in Mountain Lion disappears for open app - osx-mountain-lion

This is a perplexing issue: a program icon for a RUNNING program disappears from my Mountain Lion (10.8.1) Dock once the documents it was displaying are closed.
The offending App is TextEdit, although I suspect this will also happen in other apps. I'll be editing a text file, then close the window using the red "x" button in the top left, and as expected the window will close and the TextEdit icon will remain in the Dock with the little blue dot underneath. But wait a few seconds, and the Dock icon disappears!
I know that it's still running, because I can see the process in Activity Monitor. So what gives? Does anyone know how to make running applications remain in the Dock?
Thanks in advance.

Try to reset the dock using any one of the below procedures.
1.Open terminal and type
defaults delete com.apple.dock
killall Dock
OR
rm ~/Library/Preferences/com.apple.dock.{db,plist}
killall Dock
Hope this helps you.

Related

Visual Studio Code can't open a folder on MacOS

so I wanted to switch between projects in VSC on my MacBook Air (macOS Monterey) so, like usual, I went for a top bar, selected File, chose Open Folder. But then the Finder window that was prompted stopped responding for my touchpad clicks. It does respond when I try to crawl through folders with my keyboard but at the end I can't choose the folder to open. Any advice?
I'm also experiencing the same issue on my M1 Mac on OS Monterey 20.6 in other applications as well as VS Code. The only solution I found is the workaround posted here: https://discussions.apple.com/thread/253580300
Simply adjust the Finder window size by hovering the mouse over the corner/edge of the window then click & drag. This then makes the Finder window responsive to mouse clicks.

disable dock popping up with mouseover when in full screen

When the window is full screen, I don't want the dock to show up. A lot of times the application I am working with in full screen has some buttons and handles at the bottom of the page, and as soon as I move the mouse down to click on a button dock pops up and I click mistakenly on an item in dock. I don't remember I had this issue in previous versions of OSX but I am not too sure. I am currently on OSX El Capitan.
You can set long interval to pop the dock up. Run this code in your terminal to pop the dock up in 15 seconds.
defaults write com.apple.Dock autohide-delay -float 15 && killall Dock
It works for me.

PhpStorm terminal jumps from external monitor to default on focus, mac os x

I have 2 monitors: my notebook monitor, and primary big dell monitor. PhpStorm 9.02 and MacOS X 10.10.5.
When I work at PhpStorm, I move my terminal window to secondary notebook display, and when I focus PhpStorm or terminal, terminal jumps to primary monitor. When I work with 1 tab of terminal everything looks fine after switching on Pinned mode and Floating mode at terminal settings. But today I open 3 tabs, and terminal starts jumps again.
It's very annoying when you often switch between browser and PhpStorm.
Do somebody have the same problem and fix for it?
Known bug, please vote for IDEA-116096.
See also the corresponding JDK issue:
http://bugs.openjdk.java.net/browse/JDK-8069154
Please look #lena answer and vote for issue at intellij.
I found solution thats help me to avoid terminal window jumping:
Create new tabs in terminal.
Drag it to secondary display, so they become separate window.
Close main terminal window.
Child tabs don't jumps between displays.
I solved this by changing a setting in mission control.
Just uncheck the 'Displays have separate spaces' option.
Go to System Preferences.
Click on Mission Control.
Uncheck the box marked Displays have separate spaces.
Log out an login in again.

How can I set right click->Options->Keep in Dock on a program that only runs for 10 seconds?

I have a program (.app bundle) that I wrote for OS X Mountain Lion. It performs a task that only I need and it only runs for 10 seconds. Once a day, I click on it (Launchpad->click my app) and 10 seconds later, it is done and it closes. I want it to be in the Dock all day everyday so that I can just click on it when I need it and so my wife can find it when she needs to run it. The problem is that it does not run long enough for me to right click on it, pick Options and then click Keep in Dock. Is there anyway I can add it to the Dock? or am I going to have to modify my app so that the first time it runs it waits a minute to give me a chance to add it to the dock?
I can think of two possible solutions:
Locate your application in the Finder, and drag its icon into the Dock.
Immediately after launching the application, as soon as its icon appears in the Dock, quickly drag it to a different location/position in the Dock. The action of moving it from its default position at the end of the Dock will have the same effect as Options > Keep in Dock.

bring the application from in focus, by clicking the icon of corresponding application

I was surprised this doesn't happen automatically, but I would like my applications window to be in focus as I click its dock icon, when in minimized mode.
Just to clarify, when I minimize the app, the window goes to dock, but when I click the its corresponding Dock Icon, the window don't come in focus.
Is there anything I am missing?
I am using Qt 4.5.3 on Mac OS X 10.5, 10.6
Thanks for help.
Rahul
First answer: That's the expected behavior of a Mac app. Try Safari for example. An app can be active without showing any window. In that case, only the menu bar at the top shows that the active app is changed. So, unless absolutely necessary, you shouldn't bring the minimized window back unless the user explicitly does so. That's the Mac way!
Second answer: I understand that there are cases where you want to bring the minimized window up. In Cocoa, the application delegate method -applicationDidBicomeActive is called when the application gets the focus, and there you can bring the window up yourself. I'm sure Qt also has a similar event/callback/signal or whatever, but I don't know any Qt ... :p Sorry I can't be of any help.

Resources