• 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
menuNeedsUpdate delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

menuNeedsUpdate delegate


  • Subject: menuNeedsUpdate delegate
  • From: Boyd Collier <email@hidden>
  • Date: Thu, 16 Mar 2006 16:45:12 -0800

In response to the question posted by Rudi Sherry earlier today, I looked at a document-based program I've been working on to remind myself of what I did regarding keeping the text current. Separately, in the same program, I update a hierarchical menu so that it shows the names of all the open document windows. I do this by using a menuNeedsUpdate delegate. In my code for this method, I put a brief message in the run log (for debugging purposes). Much to my surprise, this shows that menuNeedsUpdate gets called every time I type into a document window, even though in Interface Builder, the delegate is connected between the menu that I want to update and my AppController, and would seem to have nothing to do with typing in a document window. Obviously, I don't understand something (not unusual for me). I reread Anguish et al. on delegates and still don't understand why typing in a document window would cause menuNeedsUpdate to be called.

Boyd
_______________________________________________
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


  • Prev by Date: How do I do KVC/KVO for struct properties
  • Next by Date: Crash in removeObserver
  • Previous by thread: Re: How do I do KVC/KVO for struct properties
  • Next by thread: Re: menuNeedsUpdate delegate
  • Index(es):
    • Date
    • Thread