Go Back   The macosxhints Forums > Working with OS X > Tweaking OS X / Wish List



Reply
 
Thread Tools Display Modes
Old 11-10-2003, 05:27 PM   #21
srmc710
Triple-A Player
 
Join Date: Feb 2003
Posts: 101
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

Last edited by srmc710; 11-10-2003 at 05:37 PM.
srmc710 is offline   Reply With Quote
Old 11-10-2003, 05:28 PM   #22
srmc710
Triple-A Player
 
Join Date: Feb 2003
Posts: 101
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 is offline   Reply With Quote
Old 11-10-2003, 05:29 PM   #23
srmc710
Triple-A Player
 
Join Date: Feb 2003
Posts: 101
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 is offline   Reply With Quote
Old 11-10-2003, 05:30 PM   #24
srmc710
Triple-A Player
 
Join Date: Feb 2003
Posts: 101
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
srmc710 is offline   Reply With Quote
Old 11-11-2003, 08:19 AM   #25
trip dragon
Triple-A Player
 
Join Date: Oct 2003
Posts: 133
Talking Sweet neat!

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

Are you m@d l33t enouİh ?

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

Please and Thankyou

^v^
trip dragon is offline   Reply With Quote
Old 11-11-2003, 09:26 AM   #26
rusto
MVP
 
Join Date: Jan 2002
Location: Boston, MA
Posts: 1,489
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).
__________________
:: 3.4GHz Core i7 iMac 4GB RAM :: Black MacBook SR :: 10.7.2 :: iPhone 4 / iOS 5 ::
rusto is offline   Reply With Quote
Old 11-16-2003, 07:30 PM   #27
trip dragon
Triple-A Player
 
Join Date: Oct 2003
Posts: 133
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
trip dragon is offline   Reply With Quote
Old 11-16-2003, 07:36 PM   #28
srmc710
Triple-A Player
 
Join Date: Feb 2003
Posts: 101
I have panther and it works for me!
srmc710 is offline   Reply With Quote
Old 07-10-2007, 01:39 AM   #29
trevstrotz1
Major Leaguer
 
Join Date: Jul 2007
Location: Arlington, WA
Posts: 461
Unhappy 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!
trevstrotz1 is offline   Reply With Quote
Old 07-10-2007, 01:45 AM   #30
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
Quote:
Originally Posted by trevstrotz1
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.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 07-10-2007, 01:38 PM   #31
Jean H
Registered User
 
Join Date: Jul 2007
Posts: 1
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
Jean H is offline   Reply With Quote
Reply


Posting 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

Forum Jump



All times are GMT -5. The time now is 04:52 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.