|
How would I make a checkbox hide the dock icon if it was checked? I have made a checkbox toggle a menubar item but how would you do it with the dock icon? Looking for some code to do this. Thanks!
Started by Joshua on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
See the Google) { ProcessSerialNumber psn = { 0, kCurrentProcess }; // display dock icon TransformProcessType(&psn in the Info.plist....
The app will need to be relaunched for the change to take effect .
To enable the Dock icon.
|
|
I want to make a preference for hiding the Dock icon and showing an NSStatusItem. I can create the StatusItem but I don't know how to remove the icon from Dock. :-/
Any ideas?
Started by papr on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Although they typically run as background.
The main app then starts and kills this app depending not appear in the Dock or in the Force Quit window.
That handles the dock icon exclusively.
|
|
How can we bounce the dock icon of our application?
Started by Deepika on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Hi is not on application
[NSApp requestUserAttention:NSCriticalRequest];
Is any way to bounce the icon even focus.
You to specify whether the Dock icon will bounce once or until the application is activated.
|
Ask your Facebook Friends
|
I have a Mac application bundle which is executing a shell script. The shell script calls java program 1 to do some stuff and then launches the main java application. This process leaves one icon in the Dock for the shell script which shows the name from...
Started by G_A on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Addendum: If you are using JavaApplicationStub , diagnostic output from the launch process may be obtained as follows:
$ export JAVA_LAUNCHER_VERBOSE $ ./YourBundle... .
Yes, assuming the first Java program can run headless :
java -Djava.awt.headless=true .. .
|
|
This Is Similar To One Of My Earlier Questions That Never Got Answered. I would like the Dock Icon to use the method makekeyandorderfront to open the Main window after it has been closed. I have done this with a button opening a Window but I don't know...
Started by Joshua on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This way, you won't have an active dock icon showing when there are no windows and re-open an app....
There is another way to handle this:
Rather than try window is closed .
See its documentation.
On the app's icon in the dock.
|
|
Snow Leopard works great! My mac's really fast after this. But sometimes the dock icons just disappear! I see the blue dot beneath when I click the empty space. So I know the item's there. But there are no icons! This happened for Safari and Downloads...
Started by lostInTransit on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
That immediately corrected the app, I right clicked (I have a two-button mouse) on the invisible icon and chose 'Options - Show in Finder' then 'Options - Remove....
Options - Keep in Dock' and moved the icon back to its original place.
|
|
I'm surprised this doesn't happen automatically, but I would like my applications window to open automatically when the Dock icon is clicked.
Just to clarify, when i open the app, the window automatically opens, but when I click the cross for the window...
Started by Joshua on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If there are no open windows when the dock icon when the dock icon of a non-document based app is clicked then it will do nothing..
And non-document based apps behave slightly differently.
|
|
If you put up an NSAlert while your app is in the background your dock icon starts bouncing and keeps on bouncing until you switch back.
I find this annoying.
Does anyone know how disable that for a single app?
Started by Rhythmic Fistman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
They allow you.
Not that I'd recommend it, but there is a Haxie that may help: Dock Detox .
|
|
I want to launch a program (Eclipse IDE, in this case), but I want to be able to launch multiple instances of it. I'm running Mac OS X 10.5.
I can add a script to the dock, which does this, but it has 2 drawbacks
it opens a console it doesn't have the...
Started by mike g on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Using pkaeding's command....
As for your script in the dock.
I'm not sure about a dock icon, but when I need to open two instances of Eclipse, I use on the icon, copy it, get info on your script, click on the icon and paste.
|
|
How do I add a badge to the Dock icon for my app using Cocoa? Is there any roughly "standardized" way to do this?
(I'm referring to the kind of badges that show up in Mail, iChat etc. to indicate the number of unread messages and the like.)
Cocoa Touch...
Started by Nocturne on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That I could find but you get your application's dock tile by sending the dockTile message to your.
|