|
|
#21 |
|
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. |
|
|
|
|
|
#22 |
|
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
|
|
|
|
|
|
#23 |
|
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
|
|
|
|
|
|
#24 |
|
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
|
|
|
|
|
|
#25 |
|
Triple-A Player
Join Date: Oct 2003
Posts: 133
|
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^ |
|
|
|
|
|
#26 |
|
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:
__________________
:: 3.4GHz Core i7 iMac 4GB RAM :: Black MacBook SR :: 10.7.2 :: iPhone 4 / iOS 5 :: |
|
|
|
|
|
#27 | |||||||||||||||||||
|
Triple-A Player
Join Date: Oct 2003
Posts: 133
|
It does not work in Panther ! waaaa ![]() oh well |
|||||||||||||||||||
|
|
|
|
|
#28 |
|
Triple-A Player
Join Date: Feb 2003
Posts: 101
|
I have panther and it works for me!
|
|
|
|
|
|
#29 |
|
Major Leaguer
Join Date: Jul 2007
Location: Arlington, WA
Posts: 461
|
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! |
|
|
|
|
|
#30 | |||||||||||||||||||||||
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
|
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 |
|||||||||||||||||||||||
|
|
|
|
|
#31 |
|
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 |
|
|
|
![]() |
|
|