• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Multiple menu bars for multiple document types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple menu bars for multiple document types


  • Subject: Multiple menu bars for multiple document types
  • From: August Trometer <email@hidden>
  • Date: Mon, 17 Jul 2006 09:43:15 -0400

Hello!

I have a document-based app with 2 very distinct document types (each with their own Nib). What I would like to do is have the main menu bar change depending on which document type is currently active. This way I don't have half the menu bar greyed out when the user is working on one document type and the other half greyed otherwise. From a UI perspective, I can appreciate the consistency of static menus. Yet (in my case) it makes for a very large number of menu items and half are inapplicable to the current document.

I've tried adding a main menu to each of my individual document type Nibs, but this led to other problems, including crashes.

I suppose I could detect when a window becomes active and add/remove menu items for each based on the document type the window is showing. But like a lot of things with Cocoa, if it's that much work, you're probably doing it wrong.


1) Is it possible to have multiple main menus for a single app with multiple doc-types?


2) Is this recommended? If not, what is the preferred way to deal with this situation?


Thanks!

August


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Multiple menu bars for multiple document types
      • From: Michael Watson <email@hidden>
  • Prev by Date: Core Data, questions about two models in an application
  • Next by Date: Re: reading from /dev/tty.somedevice
  • Previous by thread: Re: Core Data, questions about two models in an application
  • Next by thread: Re: Multiple menu bars for multiple document types
  • Index(es):
    • Date
    • Thread