• 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
Re: adding a sub menu to multiple super menus?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding a sub menu to multiple super menus?


  • Subject: Re: adding a sub menu to multiple super menus?
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 07 Aug 2009 17:52:52 -0700

On Aug 7, 2009, at 5:01 PM, David M.Cotter wrote:

the problem is i'm stuck with a very large legacy code base that i must modify minimally to shoehorn into Cocoa. this same code must cross compile on windows, so i can't change the underlying architecture, which has for a decade now relied on the fact that we can share submenus across many super-menus.

You really will need to adjust your application’s architecture. You can’t expect it to remain static forever, especially when changing the underlying framework. Cocoa in particular is not amenable to such an approach: The framework expects that you will work with it in the way that it is designed to be used, not in the more arbitrary “mix and match” fashion that earlier procedural systems like the Mac Toolbox andWin32 supported.


If nothing else, you can create your own menu classes to represent the menu structure you want (including sharing of submenus) and use them to construct appropriate Cocoa or Windows menu objects on the target platform.

  — Chris

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >adding a sub menu to multiple super menus? (From: "David M. Cotter" <email@hidden>)
 >Re: adding a sub menu to multiple super menus? (From: Graham Cox <email@hidden>)
 >Re: adding a sub menu to multiple super menus? (From: Jerry Krinock <email@hidden>)
 >Re: adding a sub menu to multiple super menus? (From: "David M.Cotter" <email@hidden>)

  • Prev by Date: Re: NSOperationQueue question
  • Next by Date: Re: [myNSWindow setDocumentEdited:dirtyB] fail ??
  • Previous by thread: Re: adding a sub menu to multiple super menus?
  • Next by thread: Re: adding a sub menu to multiple super menus?
  • Index(es):
    • Date
    • Thread