Tuesday, January 23, 2018

#1 2003-04-18 10:17:08 am

Phenixnest
Member
From:: Burbank, CA
Registered: 2003-04-17
Posts: 6
Website

Remove the Menu bar completely?

How can you have an app with no menu bar?  I am setting up a kiosk and don't want any menu bars for users to click.

Offline

 

#2 2003-04-18 01:56:33 pm

julifos
Administrator
From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

Re: Remove the Menu bar completely?

Go to your IB nib, select the menu bar and delete it!

Offline

 

#3 2003-04-18 06:29:32 pm

Phenixnest
Member
From:: Burbank, CA
Registered: 2003-04-17
Posts: 6
Website

Re: Remove the Menu bar completely?

If I do this, a menu bar is created somewhere that has just the application menu part of the menu.

I want the menu gone altogether.  Nothing left.  No striped bar.  No AppleMenu.  No system clock.  No menus.

That's what I'm after.

Offline

 

#4 2003-04-18 07:11:42 pm

Rob
Member
From:: Ohio, USA
Registered: 2002-11-20
Posts: 1886

Re: Remove the Menu bar completely?

If I do this, a menu bar is created somewhere that has just the application menu part of the menu.

I want the menu gone altogether.  Nothing left.  No striped bar.  No AppleMenu.  No system clock.  No menus.

That's what I'm after.



You might be able to accomplish it by adding code to quit the Finder. <shrug>

Applescript:

tell application "Finder" to quit


Filed under: Finder

Offline

 

#5 2003-04-18 08:35:12 pm

Phenixnest
Member
From:: Burbank, CA
Registered: 2003-04-17
Posts: 6
Website

Re: Remove the Menu bar completely?

But I know that real basic does it and it doesn't have to quit the finder.  I mean, ultimately, I could quit the finder anyway...but I'm looking for the way, via cocoa or whatever, that would do it.  Photoshop, as an example, toggles the menu bar on and off as one of it's views.  I KNOW they're not quiting the Finder.

But thanks for the thoughts.  I'll keep scratching my head.

I'll post the answer if I find it before someone else posts it.

Offline

 

#6 2003-04-19 02:13:49 am

julifos
Administrator
From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

Re: Remove the Menu bar completely?

A quick hack would be turning your app into "faceless" by adding these lines to your main plist file:
[code]     <key>LSUIElement</key>
     <string>1</string>[/code]
You'll lost your menu bar, plus your icon on the dock, plus your existence at system's force-quit window.

Only a idea!   :idea:

Offline

 

#7 2003-04-20 05:21:49 pm

Phenixnest
Member
From:: Burbank, CA
Registered: 2003-04-17
Posts: 6
Website

Re: Remove the Menu bar completely?

When I do that, I do lose all the things you mentioned...but I also lose my interface.

Double clicking the app just seems to do nothing...

hmm...

Who would have thought this would be so tough?  There seems to be a way to hide the menu bar:

http://developer.apple.com/samplecode/S … enuBar.htm

Cocoa Dev Central has an article about creating cocoa apps which "take over the screen," including the menu bar.

http://cocoadevcentral.com/articles/000028.php

If anyone gets more out of these to links then me, do feel free to post a common-folks-translation here.   wink

thanks!!

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)