Re: Hiding the Dock
Re: Hiding the Dock
- Subject: Re: Hiding the Dock
- From: patrick machielse <email@hidden>
- Date: Tue, 16 Jan 2007 12:11:22 +0100
Op 15-jan-2007, om 18:47 heeft David Duncan het volgende geschreven:
On Jan 11, 2007, at 1:47 PM, patrick machielse wrote:
I have a background program that hides other programs or minimizes
another program's windows. In addition, it should hide the Dock. I
cannot use SetSystemUIMode() to hide the Dock, because the setting
should be persistent for all applications, not just for my own app.
Also:
- Dock is not scriptable.
- It seems I want to manipulate the 'autohide' property in
com.apple.Dock.plist.
- I could just activate the Finder and post a 'option-command-d'
keyboard event (assuming it's not re-assigned...)
SetSystemUIMode(kUIModeContentSuppressed, 0) (makes the Dock auto-
hide)
SetSystemUIMode(kUIModeContentHidden, 0) (makes the Dock go away)
SetSystemUIMode(kUIModeNormal, 0) (returns the system to normal)
All defined in HIToolbox/MacApplication (a subframework of the
Carbon framework)
Hmm, as I indicated I cannot use SetSystemUIMode for my use. My
application is a background app (more correctly a UI Element). To use
SetSystemUIMode my application must be the active application, and
the UIMode only applies as long as my app remains the active
application; when a different application becomes active, the Dock re-
appears.
What I'm looking for is a programmatic way to switch the 'autohide'
feature of the Dock on and off. Maybe I could use the Accessibility
API to achieve this, or something similar?
patrick
--
Hieper Software
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden