The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Tweaking OS X / Wish List (http://hintsforums.macworld.com/forumdisplay.php?f=25)
-   -   Can I make the Top menu bar invisible ? Or dissapear ? (http://hintsforums.macworld.com/showthread.php?t=16927)

srmc710 11-10-2003 05:27 PM

VERY Simple
 
Oh it's a really simple program. Simple enough to even post right here. It's fully documented on apple's web site. Here are the addresses:
http://developer.apple.com/technotes/tn2002/tn2062.html
http://developer.apple.com/documenta...es/NSMenu.html
I will post the code in the following post(s?)
There are probably some little things that should be better but I'm just a beginner who looked at the documentation

srmc710 11-10-2003 05:28 PM

Code:

//
//  MenuHider.h
//  MenuLikeDock
//
//  Created by Sam McCandlish on Wed Nov 05 2003.
//  Copyright (c) 2003 SamsPrograms. All rights reserved.
//


@interface MenuHider : NSObject {
    BOOL dockLike;
    BOOL visible;
}
    - (IBAction)hideMenu:(id)sender;
    - (IBAction)showMenu:(id)sender;
    - (IBAction)dockLike:(id)sender;
    - (IBAction)notDockLike:(id)sender;

@end

(Edited to make the accidental smilies go away)

srmc710 11-10-2003 05:29 PM

Code:

//
//  MenuHider.m
//  MenuLikeDock
//
//  Created by Sam McCandlish on Wed Nov 05 2003.
//  Copyright (c) 2003 SamsPrograms. All rights reserved.
//

#import "MenuHider.h"


@implementation MenuHider

- (void)awakeFromNib {
    dockLike = TRUE;
    visible = TRUE;
}

- (IBAction)hideMenu:(id)sender {
    if (dockLike)
        SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar);
    else
        [NSMenu setMenuBarVisible:FALSE];
    visible = FALSE;
}

- (IBAction)showMenu:(id)sender {
    SetSystemUIMode(kUIModeNormal, nil);
    [NSMenu setMenuBarVisible:TRUE];
    visible = TRUE;
}

- (IBAction)dockLike:(id)sender {
    dockLike = TRUE;
    if (!visible) {
        [self showMenu:nil];
        [self hideMenu:nil];
    }
}

- (IBAction)notDockLike:(id)sender {
    dockLike = FALSE;
    if (!visible) {
        [self showMenu:nil];
        [self hideMenu:nil];
    }
}

@end


srmc710 11-10-2003 05:30 PM

Code:

//
// Prefix header for all source files of the 'MenuLikeDock' target in the 'MenuLikeDock' project
//

#ifdef __OBJC__
    #import <Cocoa/Cocoa.h>
    #include <Carbon/Carbon.h>
    #import <Foundation/Foundation.h>
#endif


trip dragon 11-11-2003 08:19 AM

Sweet neat!
 
Neat !
Sooo from all of that I must ask. Can the immpossable be done for all apps ?

:D Are you m@d l33t enouİh ? :D

And still be able to use the dock ????

Please and Thankyou

^v^

rusto 11-11-2003 09:26 AM

As far as I can tell this only confirms that you can hide the menu bar only on an application by application basis. In fact the documentation you refer to clearly says:
  • As mentioned earlier the SystemUIMode and SystemUIOptions specified are only in effect while the process which called SetSystemUIMode is frontmost.
Download and noodle with this demo (be sure to hide the menu with it then bring some other app forward).

trip dragon 11-16-2003 07:30 PM

Quote:

Originally posted by rusto
As far as I can tell this only confirms that you can hide the menu bar only on an application by application basis. In fact the documentation you refer to clearly says:
  • As mentioned earlier the SystemUIMode and SystemUIOptions specified are only in effect while the process which called SetSystemUIMode is frontmost.
Download and noodle with this demo (be sure to hide the menu with it then bring some other app forward).
It does not work in Panther ! waaaa :(

oh well

srmc710 11-16-2003 07:36 PM

I have panther and it works for me!

trevstrotz1 07-10-2007 01:39 AM

Did Not Work
 
it did not work for me, but i reall, really want it, could u send it to my email? It is trevstrotz1@hotmail.com

Thanks!

hayne 07-10-2007 01:45 AM

Quote:

Originally Posted by trevstrotz1 (Post 392059)
it did not work for me, but i reall, really want it, could u send it to my email?

It is an extremely bad idea to install software from strangers! (And people that you know only by their nickname on a forum such as this count as strangers) You have no idea what it really does and you are really inviting someone to send you a "trojan horse" or other such malware.
This is especially true of software that asks for your admin password.

Jean H 07-10-2007 01:38 PM

Sorry, pressed the wrong key. Anyway, thanks to lespaulio
04-13-2007, 12:32 AM. After 3 days of 'not' finding the problem solution on my own. THANK you. By the way I have a eMac version 10.3.9 Does all I need :~)
Happy day to all.
Jean H


All times are GMT -5. The time now is 04:50 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.