Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Here's a quick useful program someone could write

Here's a quick useful program someone could write
Thread Tools
Grizzled Veteran
Join Date: Jul 2001
Location: Sydney, Australia
Status: Offline
Reply With Quote
Oct 16, 2001, 10:49 AM
 
Just playing around in Photoshop in classic, and realised how useless and annoying the dock is while your classic app is in the foreground. The apps don't know to move out of the way of it, and you get all sorts of visual glitches and just general annoyances. What would be really cool is if someone could write a quick app/daemon which automatically hid the dock while Classic was in the foreground, to have it return again once you switch to an OS X app. Sounds pretty simple. What do you OS X developers think?

qnxde

You can't eat all those hamburgers, you hear me you ridiculous man?
     
Fresh-Faced Recruit
Join Date: Oct 2001
Location: Cambridge, MA
Status: Offline
Reply With Quote
Oct 17, 2001, 07:49 PM
 
Great idea, actually.

I'd like to have this for both Classic and for rootless XDarwin/XFree86. Both ignore the dock, and neither really benefits from its presense, either.

Okay, so how does one programatically turn on and off Dock hiding? It should be possible -- the system preferences app seems to be able to tell the dock to show and hide itself in real time.
     
Addicted to MacNN
Join Date: Aug 2000
Location: Retired
Status: Offline
Reply With Quote
Oct 17, 2001, 09:10 PM
 
While we're on it, I'd like an app that narrows the dock down but also makes it long..like the Windblows taskbar.
Power Macintosh Dual G4
SGI Indigo2 6.5.21f
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Oct 18, 2001, 01:47 AM
 
It's private functions in HIServices.framework

Frank Vercruesse reverse engineered them, they're like this:
extern Boolean CoreDockGetAutoHideEnabled( void );
extern void CoreDockSetAutoHideEnabled( Boolean );

I think that his project, ASM, might be able to do what you want already... http://asm.vercruesse.de/
     
Fresh-Faced Recruit
Join Date: Oct 2001
Location: Cambridge, MA
Status: Offline
Reply With Quote
Oct 18, 2001, 09:58 AM
 
Originally posted by Angus_D:
<STRONG>I think that his project, ASM, might be able to do what you want already... http://asm.vercruesse.de/</STRONG>
Very cool. ASM does exactly what I want for XDarwin. Thanks for the tip!

Now to find a way to get it to disable the dock for ALL classic apps -- it seems only to work on specific apps.
     
qnxde  (op)
Grizzled Veteran
Join Date: Jul 2001
Location: Sydney, Australia
Status: Offline
Reply With Quote
Oct 22, 2001, 05:00 AM
 
Hmm, I can't get the No Dock item to enable in ASM. It's always ghosted. Any help?

You can't eat all those hamburgers, you hear me you ridiculous man?
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Oct 22, 2001, 08:37 AM
 
A better idea, though certainly more difficult to write, would be to write an Extension for Classic. This would, in theory, detect when the user was booted into OSX, and then patch Classic's zoom code to make it respect the Dock. That way, you get the best of both worlds.

Mind you, this is likely to be nontrivial, to say the least. Not necessarily impossible, but not at all easy. And maybe it really wouldn't be possible; I don't know. Anyone have any ideas on that?
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Senior User
Join Date: Feb 2001
Location: Rochester, uk
Status: Offline
Reply With Quote
Oct 24, 2001, 08:52 AM
 
I don't think you're going to get people to put that much effort into a classic extension at this point. :-)
All words are lies. Including these ones.
     
Junior Member
Join Date: May 2001
Location: Walnut Creek, CA
Status: Offline
Reply With Quote
Oct 25, 2001, 01:30 AM
 
Originally posted by Millennium:
<STRONG>A better idea, though certainly more difficult to write, would be to write an Extension for Classic. This would, in theory, detect when the user was booted into OSX, and then patch Classic's zoom code to make it respect the Dock. That way, you get the best of both worlds.

Mind you, this is likely to be nontrivial, to say the least. Not necessarily impossible, but not at all easy. And maybe it really wouldn't be possible; I don't know. Anyone have any ideas on that?</STRONG>
Would it be non-trivial? It seems like it should only be a few lines:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
if(runningInClassic)
{
zoomSize = sreenSize - dockSize;
}
</font>[/code]

Ok, so that's definately way over simplified, but I'm not sure it would be as hard as you think. Not that I know exactly how to do it or anything...
-Whisper
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2