• 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: Menu synchronization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu synchronization


  • Subject: Re: Menu synchronization
  • From: Antonio Nunes <email@hidden>
  • Date: Sun, 29 Oct 2006 23:15:51 +0000

On 29 Oct 2006, at 21:33, James Pengra wrote:

I'm working on a multi-document application where one of the menus (a submenu) is changed as things (lens images in this case) are added to the document. With more than one documents open, I would like the menu to correspond to the top or key document window. There must be a standard or accepted way to manage this.

In my app I make sure the affected menus are correct when the document's validateMenuItem is called. This way you'll always get the menu that is appropriate for the active document. Something like this:


- (BOOL) validateMenuItem: (NSMenuItem *) item {
	[self updateViewMenu];

	// menu validation code
}

As long as the updating code executes fast enough this should be allright. Most menus are not long enough to generate a noticeable lag here.

HTH,
António

-----------------------------------------------------------
Don't believe everything you think
-----------------------------------------------------------




_______________________________________________ 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
References: 
 >Menu synchronization (From: James Pengra <email@hidden>)

  • Prev by Date: Re: Ripple Transition Timing
  • Next by Date: Getting an NSFileWrappers Contents?
  • Previous by thread: Menu synchronization
  • Next by thread: Re: Menu synchronization
  • Index(es):
    • Date
    • Thread